20 #ifndef __EKG_SOURCES_H
21 #define __EKG_SOURCES_H
45 #define TIMER(x) gint x(gint type, gpointer data)
46 #define TIMER_SESSION(x) gint x(gint type, session_t *s)
49 ekg_timer_t
timer_add(
plugin_t *plugin,
const gchar *
name, guint period, gboolean
persist, gint (*
function)(gint, gpointer), gpointer data);
50 ekg_timer_t
timer_add_ms(
plugin_t *plugin,
const gchar *name, guint period, gboolean persist, gint (*
function)(gint, gpointer), gpointer data);
69 #define WATCHER(x) int x(int type, int fd, watch_type_t watch, void *data)
70 #define WATCHER_LINE(x) int x(int type, int fd, const char *watch, void *data)
71 #define WATCHER_SESSION(x) int x(int type, int fd, watch_type_t watch, session_t *s)
72 #define WATCHER_SESSION_LINE(x) int x(int type, int fd, const char *watch, session_t *s)
102 #ifndef EKG2_WIN32_NOFUNCTION
119 #define watch_add_line(p, fd, type, handler, data) watch_add(p, fd, type, (watcher_handler_func_t *) (handler), data)
121 #define watch_add_session_line(s, fd, type, handler) watch_add_session(s, fd, type, (watcher_session_handler_func_t *) (handler))