aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-event.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /e-util/e-event.h
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'e-util/e-event.h')
-rw-r--r--e-util/e-event.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/e-util/e-event.h b/e-util/e-event.h
index 5b4e3f44ab..5ae3b61d1b 100644
--- a/e-util/e-event.h
+++ b/e-util/e-event.h
@@ -44,9 +44,9 @@ typedef struct _EEventItem EEventItem;
typedef struct _EEventFactory EEventFactory; /* anonymous type */
typedef struct _EEventTarget EEventTarget;
-typedef void (*EEventItemsFunc)(EEvent *ee, GSList *items, void *data);
-typedef void (*EEventFunc)(EEvent *ee, EEventItem *item, void *data);
-typedef void (*EEventFactoryFunc)(EEvent *ee, void *);
+typedef void (*EEventItemsFunc)(EEvent *ee, GSList *items, gpointer data);
+typedef void (*EEventFunc)(EEvent *ee, EEventItem *item, gpointer data);
+typedef void (*EEventFactoryFunc)(EEvent *ee, gpointer );
/**
* enum _e_event_t - Event type.
@@ -86,11 +86,11 @@ enum _e_event_t {
**/
struct _EEventItem {
enum _e_event_t type;
- int priority; /* priority of event */
- const char *id; /* event id */
- int target_type;
+ gint priority; /* priority of event */
+ const gchar *id; /* event id */
+ gint target_type;
EEventFunc handle;
- void *user_data;
+ gpointer user_data;
guint32 enable; /* enable mask */
};
@@ -133,7 +133,7 @@ struct _EEvent {
GObject object;
struct _EEventPrivate *priv;
- char *id;
+ gchar *id;
EEventTarget *target; /* current target during event emission */
};
@@ -156,15 +156,15 @@ struct _EEventClass {
GType e_event_get_type(void);
-EEvent *e_event_construct(EEvent *, const char *id);
+EEvent *e_event_construct(EEvent *, const gchar *id);
-void *e_event_add_items(EEvent *emp, GSList *items, EEventItemsFunc freefunc, void *data);
-void e_event_remove_items(EEvent *emp, void *handle);
+gpointer e_event_add_items(EEvent *emp, GSList *items, EEventItemsFunc freefunc, gpointer data);
+void e_event_remove_items(EEvent *emp, gpointer handle);
-void e_event_emit(EEvent *, const char *id, EEventTarget *);
+void e_event_emit(EEvent *, const gchar *id, EEventTarget *);
-void *e_event_target_new(EEvent *, int type, size_t size);
-void e_event_target_free(EEvent *, void *);
+gpointer e_event_target_new(EEvent *, gint type, size_t size);
+void e_event_target_free(EEvent *, gpointer );
/* ********************************************************************** */