Files | |
| file | xdasd_trigger.c |
| OpenXDAS trigger script processing engine. | |
| file | xdasd_trigger.h |
| OpenXDAS trigger script processing engine. | |
Functions | |
| int | xdasd_trigger_append (Parsed *parsed) |
| Execute a shell script with variable expansion on a background thread. | |
| int | xdasd_trigger_init (void) |
| Initialize the trigger script execution subsystem. | |
| void | xdasd_trigger_exit (void) |
| Cleanup the trigger script execution subsystem. | |
| int xdasd_trigger_append | ( | Parsed * | parsed | ) |
Execute a shell script with variable expansion on a background thread.
| [in] | parsed | - the parsed message and script set to be executed. |
Each field in the null-terminated msgflds char ptr array points to the start of one XDAS message field in the original XDAS message. These fields are NOT null-terminated, rather the end of a given field is signified by the beginning of the next (subtract one to exclude the trailing field delimiter - the colon). The last non-null pointer points to the second character beyond the end of the final field (so that all fields may be treated the same - back up one and consider that the field limit (field char + 1). Normally, this pointer would point to the byte following the null-terminator, except that XDAS messages are not null-terminated.
For internal use only.
Definition at line 151 of file xdasd_trigger.c.
References s_mq_trigger, and xdasd_mqueue_append().
Referenced by xdasd_event_check_and_submit().
| void xdasd_trigger_exit | ( | void | ) |
Cleanup the trigger script execution subsystem.
For internal use only.
Definition at line 177 of file xdasd_trigger.c.
References s_mq_trigger, and xdasd_mqueue_destroy().
Referenced by xdasd_main_init(), and xdasd_main_run().
| int xdasd_trigger_init | ( | void | ) |
Initialize the trigger script execution subsystem.
For internal use only.
Definition at line 162 of file xdasd_trigger.c.
References s_mq_trigger, tr_get(), tr_process(), tr_put(), xdasd_log(), and xdasd_mqueue_create().
Referenced by xdasd_main_init().
1.5.6