From 96180f2cac8ebcbd7e2d683e891011697357dc9f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 9 Dec 2005 16:43:19 +0000 Subject: r12140: - add an additional_flags field to the fd_event struct, so that the events backend can store private flags - add function to access the gtk event loop ops struct metze (This used to be commit a5cc0758a393f36a770cdd57e317214d03934c13) --- source4/gtk/common/gtk_events.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/gtk') diff --git a/source4/gtk/common/gtk_events.c b/source4/gtk/common/gtk_events.c index f844ab01c9..7f1230b13f 100644 --- a/source4/gtk/common/gtk_events.c +++ b/source4/gtk/common/gtk_events.c @@ -135,6 +135,7 @@ static struct fd_event *gtk_event_add_fd(struct event_context *ev, TALLOC_CTX *m fde->flags = flags; fde->handler = handler; fde->private_data = private_data; + fde->additional_flags = 0; fde->additional_data = gtk_fd; channel = g_io_channel_unix_new(fde->fd); @@ -340,6 +341,11 @@ static const struct event_ops gtk_event_ops = { .loop_wait = gtk_event_loop_wait, }; +const struct event_ops *gtk_event_get_ops(void) +{ + return >k_event_ops; +} + int gtk_event_loop(void) { int ret; -- cgit