]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib, lib-master: Rename EVENT_CALLBACK_TYPE_EVENT to _SEND
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Sep 2019 08:48:27 +0000 (11:48 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Sep 2019 13:29:28 +0000 (13:29 +0000)
This describes the functionality better.

src/lib-master/stats-client.c
src/lib/lib-event-private.h
src/lib/lib-event.c

index dfa00b4e24c70da24a094b9f841ab5b1912ff41c..4fd4dbf5ddd8a07eebb93108ee7291658614b423 100644 (file)
@@ -227,7 +227,7 @@ stats_event_callback(struct event *event, enum event_callback_type type,
                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:
index c81761f3e5994856bc7524deac7631cca249ff56..dd16157ecdf53c9751bffff1dd6de485164d320f 100644 (file)
@@ -46,7 +46,7 @@ struct event {
 
 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,
 };
index 34c546dc21dcc7e1ceee975d7fb40621e3fc79b6..b5aca13abcd4ec74f88d7505e25b2980ed4a8a3f 100644 (file)
@@ -807,7 +807,7 @@ void event_vsend(struct event *event, struct failure_context *ctx,
 {
        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)