Typedefs | |
typedef sul_signal_group_t | sul_signal_group_t |
typedef sul_signal_t | sul_signal_t |
typedef sul_signal_hook_t | sul_signal_hook_t |
typedef sul_error_t *(* | sul_sigfn_t )(sul_signal_t *signal, sul_tuple_t *tuple) |
typedef sul_sigentries_t | sul_sigentries_t |
Functions | |
sul_signals_initialize (apr_pool_t *pool) | |
sul_signals_create (const char *name, const char *f) | |
sul_signals_destroy (const char *name) | |
sul_signals_hook (const char *name, sul_sigfn_t fn) | |
sul_signals_unhook (const char *name, sul_sigfn_t fn) | |
sul_signals_get_signal (const char *name, sul_signal_t **signal) | |
sul_signals_get_ring (const char *name, sul_sigentries_t **ring) | |
sul_signals_valid (const char *name) | |
sul_signals_emit (apr_pool_t *pool, const char *name,...) | |
sul_signals_signal_name (sul_signal_t *signal) | |
sul_signals_signal_type (sul_signal_t *signal) |
|
Collection of Signals. |
|
Hook function prototype that is invoked for all Signals. |
|
Function pointer and prototype for a signal function. It may be a good idea to someday customize this using macros so that when we do invoke the function pointer no warnings are produced. |
|
Signal hook, an entry for a hook function that belongs to a Signal. |
|
An individual Signal in a Signal Group. |
|
Creates a new Signal in the signal system.
|
|
Removes an existing signal created with sul_signals_create from the system, this will render future calls to hook and unhook error prone.
|
|
Emits a signal, invoking all of the hooks that are registered for the signal. The pool is only used, for now, to allocate the tuple to store the arguments for the function, so the pool is only required for the lifetime of the CALL itself, afterwards it may be destroyed assuming that the hook functions don't keep their parameters around afterwards (string ones anyway)
|
|
Gets the ring of signal entries for the signal with the specified name.
|
|
Gets the signal with the specified name.
|
|
Hooks the given function into the signal with the specified name. If the signal can't be found then an error will be returned.
|
|
Initializes the signals system, creating the internal tables and rings that the system uses to keep track of all the signals and their hooked functions.
|
|
Gets the name of a Signal.
|
|
Gets the type information for a Signal.
|
|
Unhooks the given function from the signal with the specified name. If the signal can't be found then an error will be returned.
|
|
Returns true if a signal with the given name has been created.
|