log_spool_import
Name
log_spool_import
Synopsis
#include "hooks/core/log_spool_import.h"
| void **log_spool_import** (
| closure, | |
| | m, | |
| | orig_id, | |
| | now, | |
| | ctx, | |
| | result)
; | |
void * <var class="pdparam">closure</var>
;
ec_message * <var class="pdparam">m</var>
;
message_id * <var class="pdparam">orig_id</var>
;
struct timeval * <var class="pdparam">now</var>
;
ec_spool_ctx * <var class="pdparam">ctx</var>
;
int <var class="pdparam">result</var>
;
| int **has_core_log_spool_import_hook** (
| )
; | |
| void **register_core_log_spool_import_hook_first** (
| hook, | |
| | closure)
; | |
ec_hook_core_log_spool_import_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| void **register_core_log_spool_import_hook_last** (
| hook, | |
| | closure)
; | |
ec_hook_core_log_spool_import_func_t <var class="pdparam">hook</var>
;
void *<var class="pdparam">closure</var>
;
| void **call_core_log_spool_import_hook** (
| m, | |
| | orig_id, | |
| | now, | |
| | ctx, | |
| | result)
; | |
ec_message * <var class="pdparam">m</var>
;
message_id * <var class="pdparam">orig_id</var>
;
struct timeval * <var class="pdparam">now</var>
;
ec_spool_ctx * <var class="pdparam">ctx</var>
;
int <var class="pdparam">result</var>
;
Description
This hook allows a module to be notified when a message is imported from a spool context. Note that m->id may differ from orig_id, as spool imports may cause the message id to be regenerated. msg may also be NULL. result is one of LOG_SPOOL_IMPORT_SUCCESS, LOG_SPOOL_IMPORT_SPOOL_IN_FAIL, LOG_SPOOL_IMPORT_SWAP_IN_FAIL, LOG_SPOOL_IMPORT_SWAP_OUT_FAIL.