Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

event.c File Reference


Detailed Description

Functions that should be in GTK+ 1.2 or GTK+ 2.x but are not.

Author:
Richard Eckart
Date:
2002-2003

#include "common.h"
#include "event.h"
#include "misc.h"
#include "walloc.h"
#include "override.h"

Defines

#define subscriber_destroy(s)   wfree(s, sizeof(struct subscriber))

Functions

 RCSID ("$Id:event.c, v 1.5 2005/06/25 01:37:42 daichik Exp $")
subscribersubscriber_new (GCallback cb, enum frequency_type t, guint32 interval)
eventevent_new (const gchar *name)
void real_event_destroy (struct event *evt)
 Destroy an event and free all associated memory.

void event_add_subscriber (struct event *evt, GCallback cb, enum frequency_type t, guint32 interval)
void event_remove_subscriber (struct event *evt, GCallback cb)
guint event_subscriber_count (struct event *evt)
gboolean event_subscriber_active (struct event *evt)
event_tableevent_table_new (void)
void real_event_table_destroy (struct event_table *t, gboolean cleanup)
void event_table_add_event (struct event_table *t, struct event *evt)
void event_table_remove_event (struct event_table *t, struct event *evt)
gboolean remove_helper (gpointer unused_key, gpointer value, gpointer unused_data)
void event_table_remove_all (struct event_table *t)


Define Documentation

#define subscriber_destroy s   )     wfree(s, sizeof(struct subscriber))
 


Function Documentation

void event_add_subscriber struct event evt,
GCallback  cb,
enum frequency_type  t,
guint32  interval
 

struct event* event_new const gchar *  name  )  [inline]
 

void event_remove_subscriber struct event evt,
GCallback  cb
 

gboolean event_subscriber_active struct event evt  ) 
 

guint event_subscriber_count struct event evt  ) 
 

void event_table_add_event struct event_table t,
struct event evt
 

struct event_table* event_table_new void   ) 
 

void event_table_remove_all struct event_table t  ) 
 

void event_table_remove_event struct event_table t,
struct event evt
 

RCSID "$Id:event.  c,
v 1.5 2005/06/25 01:37:42 daichik Exp $" 
 

void real_event_destroy struct event evt  ) 
 

Destroy an event and free all associated memory.

The pointer to the event will be NULL after this call.

void real_event_table_destroy struct event_table t,
gboolean  cleanup
 

gboolean remove_helper gpointer  unused_key,
gpointer  value,
gpointer  unused_data
[static]
 

struct subscriber* subscriber_new GCallback  cb,
enum frequency_type  t,
guint32  interval
[inline, static]
 


Generated on Sun Feb 12 10:50:00 2006 for Gtk-Gnutella by doxygen 1.3.6