This describes the functionality better.
return TRUE;
switch (type) {
- case EVENT_CALLBACK_TYPE_EVENT:
+ case EVENT_CALLBACK_TYPE_SEND:
stats_client_send_event(client, event, ctx);
break;
case EVENT_CALLBACK_TYPE_FREE:
enum event_callback_type {
/* Event is being sent */
- EVENT_CALLBACK_TYPE_EVENT,
+ EVENT_CALLBACK_TYPE_SEND,
/* Event with call_free=TRUE is being freed */
EVENT_CALLBACK_TYPE_FREE,
};
{
if (gettimeofday(&event->tv_last_sent, NULL) < 0)
i_panic("gettimeofday() failed: %m");
- if (event_send_callbacks(event, EVENT_CALLBACK_TYPE_EVENT,
+ if (event_send_callbacks(event, EVENT_CALLBACK_TYPE_SEND,
ctx, fmt, args)) {
if (ctx->type != LOG_TYPE_DEBUG ||
event->sending_debug_log)