diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-02 13:39:56 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-01-02 18:16:53 +0100 |
commit | 4f04b06ac2cfceddaabcbf661f9878ff69a6f01b (patch) | |
tree | 96788f8f0e71b9e517b63ba53f9e31ac8133626e /lib/tevent/tevent_internal.h | |
parent | d79fc2ffcd9802d927f82f014c2b13c7eb8cc873 (diff) | |
download | samba-4f04b06ac2cfceddaabcbf661f9878ff69a6f01b.tar.gz samba-4f04b06ac2cfceddaabcbf661f9878ff69a6f01b.tar.bz2 samba-4f04b06ac2cfceddaabcbf661f9878ff69a6f01b.zip |
tevent: rename ev_debug_ops => tevent_debug_ops
And related changes, but we keep compat macros
metze
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r-- | lib/tevent/tevent_internal.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h index 408136dc71..46ba1b1655 100644 --- a/lib/tevent/tevent_internal.h +++ b/lib/tevent/tevent_internal.h @@ -111,22 +111,14 @@ struct tevent_signal { void *additional_data; }; -/* DEBUG */ -enum ev_debug_level {EV_DEBUG_FATAL, EV_DEBUG_ERROR, - EV_DEBUG_WARNING, EV_DEBUG_TRACE}; - -struct ev_debug_ops { - void (*debug)(void *context, enum ev_debug_level level, +struct tevent_debug_ops { + void (*debug)(void *context, enum tevent_debug_level level, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(3,0); void *context; }; -int ev_set_debug(struct tevent_context *ev, - void (*debug)(void *context, enum ev_debug_level level, - const char *fmt, va_list ap) PRINTF_ATTRIBUTE(3,0), - void *context); -int ev_set_debug_stderr(struct tevent_context *ev); -void ev_debug(struct tevent_context *ev, enum ev_debug_level level, const char *fmt, ...); +void tevent_debug(struct tevent_context *ev, enum tevent_debug_level level, + const char *fmt, ...) PRINTF_ATTRIBUTE(3,4); /* aio event is private to the aio backend */ struct tevent_aio; @@ -148,7 +140,7 @@ struct tevent_context { struct tevent_fd *pipe_fde; /* debugging operations */ - struct ev_debug_ops debug_ops; + struct tevent_debug_ops debug_ops; }; |