Barrelfish
|
Handler function for asynchronous triggers sent by server. More...
Functions | |
errval_t | oct_remove_trigger (octopus_trigger_id_t trigger_id) |
Removes a trigger in the octopus server. More... | |
errval_t | oct_trigger_existing_and_watch (const char *query, trigger_handler_fn event_handler, void *state, octopus_trigger_id_t *tid) |
Handler function for asynchronous triggers sent by server.
errval_t oct_remove_trigger | ( | octopus_trigger_id_t | trigger_id | ) |
Removes a trigger in the octopus server.
In any case a valid watch id is specified this causes a trigger event to be sent with the OCT_REMOVED flag set. After this event it's safe to clean up any memory associated with the event handler.
trigger_id | ID of trigger we want to remove |
SYS_ERR_OK | |
OCT_INVALID_ID |
errval_t oct_trigger_existing_and_watch | ( | const char * | query, |
trigger_handler_fn | event_handler, | ||
void * | state, | ||
octopus_trigger_id_t * | tid | ||
) |
Watches for a query of records and calls the trigger function for all records found and subsequent records registered.
[in] | query | Records to watch for. |
[in] | event_handler | Handler function to call. |
[in] | state | Additional state for handler function |
[out] | tid | Trigger id. |
SYS_ERR_OK | Trigger registered, handler fn called for all current records. |