summaryrefslogtreecommitdiff
path: root/source4/gtk
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-09 16:43:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:13 -0500
commit96180f2cac8ebcbd7e2d683e891011697357dc9f (patch)
tree20e28a267217db48155b02c904c0113111047ac7 /source4/gtk
parent2e4d4a9e28ddd84e245e45c2c58f9cc6e8e2967f (diff)
downloadsamba-96180f2cac8ebcbd7e2d683e891011697357dc9f.tar.gz
samba-96180f2cac8ebcbd7e2d683e891011697357dc9f.tar.bz2
samba-96180f2cac8ebcbd7e2d683e891011697357dc9f.zip
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)
Diffstat (limited to 'source4/gtk')
-rw-r--r--source4/gtk/common/gtk_events.c6
1 files changed, 6 insertions, 0 deletions
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 &gtk_event_ops;
+}
+
int gtk_event_loop(void)
{
int ret;