diff options
author | keis <keijser@gmail.com> | 2011-01-14 20:45:56 +0100 |
---|---|---|
committer | keis <keijser@gmail.com> | 2011-02-15 21:05:49 +0100 |
commit | 95fb1bfa2a140611ee68ef42447327f6defd9b8d (patch) | |
tree | d76b965704d22cb844aa19d700d8db7164af0f23 /src/events.h | |
parent | 681cb249c31e4e17e3ae9b8f68b10d7f33fea402 (diff) |
format event strings in send_event
send_event now takes a null terminated type, value sequence as arguments
vsend_event does the same thing but takes a va_list with arguments.
Diffstat (limited to 'src/events.h')
-rw-r--r-- | src/events.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/events.h b/src/events.h index 4edc5ab..8e75097 100644 --- a/src/events.h +++ b/src/events.h @@ -7,6 +7,7 @@ #define __EVENTS__ #include <glib.h> +#include <stdarg.h> /* Event system */ enum event_type { @@ -38,7 +39,10 @@ void send_event_stdout(GString *msg); void -send_event(int type, const gchar *details, const gchar *custom_event); +vsend_event(int type, const gchar *custom_event, va_list vargs); + +void +send_event(int type, const gchar *custom_event, ...) G_GNUC_NULL_TERMINATED; void key_to_event(guint keyval, gint mode); |