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

event.h File Reference

#include "common.h"
#include "tm.h"

Go to the source code of this file.

Data Structures

struct  subscriber
struct  event
struct  event_table

Defines

#define event_destroy(evt)
#define T_VETO(sig, params)   if (((sig) vars_.s->cb) params ) break;
#define T_NORMAL(sig, params)   ((sig) vars_.s->cb) params ;
#define event_trigger(ev, callback)
#define event_table_destroy(t)

Typedefs

typedef enum frequency_type frequency_t
typedef event event_t

Enumerations

enum  frequency_type { FREQ_SECS, FREQ_UPDATES }

Functions

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, frequency_t 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)
void event_table_remove_all (struct event_table *t)


Define Documentation

#define event_destroy evt   ) 
 

Value:

G_STMT_START {                          \
    real_event_destroy(evt);                                       \
    G_FREE_NULL(evt);                                              \
} G_STMT_END

#define event_table_destroy  ) 
 

Value:

G_STMT_START {                      \
    real_event_table_destroy(t);                                   \
    G_FREE_NULL(t);                                                \
} G_STMT_END

#define event_trigger ev,
callback   ) 
 

#define T_NORMAL sig,
params   )     ((sig) vars_.s->cb) params ;
 

#define T_VETO sig,
params   )     if (((sig) vars_.s->cb) params ) break;
 


Typedef Documentation

typedef struct event event_t
 

typedef enum frequency_type frequency_t
 


Enumeration Type Documentation

enum frequency_type
 

Enumeration values:
FREQ_SECS 
FREQ_UPDATES 


Function Documentation

void event_add_subscriber struct event evt,
GCallback  cb,
frequency_t  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
 

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
 


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