galago-signals.h File Reference
Galago Signals API. More...
#include <libgalago/galago-object.h>
#include <libgalago/galago-value.h>
#include <libgalago/galago-hashtable.h>
#include <libgalago/galago-types.h>
Go to the source code of this file.
Signal Context API | |
GalagoSignalContext * | galago_signal_context_new (void) |
Creates a signal context. | |
void | galago_signal_context_destroy (GalagoSignalContext *signal_context) |
Destroys a signal context. | |
void | galago_signal_context_freeze (GalagoSignalContext *signal_context) |
Freezes a signal context. | |
void | galago_signal_context_thaw (GalagoSignalContext *signal_context) |
Thaws a signal context. | |
galago_bool | galago_signal_context_is_frozen (const GalagoSignalContext *signal_context) |
Returns whether or not a signal context is frozen. | |
GalagoSignalHandler * | galago_signal_context_find_handler (const GalagoSignalContext *signal_context, const void *object, const char *signal, GalagoCallback cb) |
Finds a signal handler with the specified object, signal name, and callback. | |
GalagoSignalHandler * | galago_signal_context_find_handler_with_id (unsigned long id) |
Finds a signal handler with the specified ID. | |
Signals Subsystem API | |
galago_bool | galago_signal_register (GalagoSignalContext *signal_context, const char *signal, GalagoMarshalFunc marshal, size_t num_values,...) |
Registers a signal in the signal context. | |
void | galago_signal_unregister (GalagoSignalContext *signal_context, const char *signal) |
Unregisters a signal in the signal context. | |
unsigned long | galago_signal_connect_class (GalagoObjectClass *klass, const char *signal, GalagoCallback cb, void *user_data) |
Connects a signal handler to a signal for all objects in a class. | |
unsigned long | galago_signal_connect (void *obj, const char *signal, GalagoCallback cb, void *user_data) |
Connects a signal handler to a signal for an object. | |
void | galago_signals_disconnect_by_id (unsigned long id) |
Disconnects a signal handler with the specified ID. | |
void | galago_signal_emit (void *object, const char *signal,...) |
Emits a signal. | |
void | galago_signal_emit_vargs (void *object, const char *signal, va_list args) |
Emits a signal, using a va_list of arguments. | |
void | galago_signals_init (void) |
Initializes the signals subsystem. | |
void | galago_signals_uninit (void) |
Uninitializes the signals subsystem. | |
Defines | |
#define | GALAGO_SIGNAL_CONTEXT(obj) (galago_class_get_signal_context(GALAGO_OBJECT_CLASS(obj))) |
Typedefs | |
typedef _GalagoSignalHandler | GalagoSignalHandler |
typedef _GalagoSignalContext | GalagoSignalContext |
typedef void(* | GalagoMarshalFunc )(GalagoCallback cb, GalagoObject *obj, const char *signal, va_list args, void *data) |
Detailed Description
Galago Signals API.
- Copyright:
- (C) 2004-2005 Christian Hammond
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file galago-signals.h.
Function Documentation
|
Connects a signal handler to a signal for an object.
|
|
Connects a signal handler to a signal for all objects in a class.
|
|
Destroys a signal context.
|
|
Finds a signal handler with the specified object, signal name, and callback.
|
|
Finds a signal handler with the specified ID.
|
|
Freezes a signal context.
|
|
Returns whether or not a signal context is frozen.
|
|
Creates a signal context.
|
|
Thaws a signal context.
|
|
Emits a signal.
|
|
Emits a signal, using a va_list of arguments.
|
|
Registers a signal in the signal context.
|
|
Unregisters a signal in the signal context.
|
|
Disconnects a signal handler with the specified ID.
|