EventsExecute
From TrillWiki
The eventsExecute function will execute a pending event. There are two types of events. One can be generated and end right away. The other can be generated and last until it is executed. These are normally events that require the user to approve them.
Compatibility: 2.0 and higher
Contents |
Syntax
plugin_send(MYGUID, "eventsExecute", struct event_t *);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
EventsExecute utilitizes the event_t structure.
struct event_t {
unsigned int struct_size;
char *type;
char *description;
int discrete;
int event_id;
struct event_variables_t *variables;
};
- event_id
- The id of the event to execute.
Return Value
Negative value on error, event id on success.
Remarks
None.
