From dbe289f011a9ecedf0f4cabb9f25c9564c8aa830 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 25 Aug 2006 13:17:24 +0000 Subject: Fix and cleanup watch functionality --- common/glib-ectomy.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'common/glib-ectomy.h') diff --git a/common/glib-ectomy.h b/common/glib-ectomy.h index af6f4fbb..16f4810d 100644 --- a/common/glib-ectomy.h +++ b/common/glib-ectomy.h @@ -36,25 +36,9 @@ typedef struct _GIOChannel { typedef gboolean (*GSourceFunc) (gpointer data); -struct timeout { - guint id; - guint interval; - struct timeval expiration; - gpointer data; - GSourceFunc function; -}; - -typedef struct _GMainContext { - guint next_id; - glong timeout; - struct slist *ltimeout; - struct slist *processed; -} GMainContext; - -typedef struct _GMainLoop { - int bail; - GMainContext *context; -} GMainLoop; +typedef struct _GMainContext GMainContext; + +typedef struct _GMainLoop GMainLoop; typedef enum { G_IO_ERROR_NONE, -- cgit