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

inputevt.h File Reference


Detailed Description

Input I/O notification.

Author:
ko (ko-@wanadoo.fr)
Date:
2002
Author:
Christian Biere
Date:
2005

#include <glib.h>

Go to the source code of this file.

Defines

#define inputevt_remove(source)   (g_source_remove(source))
#define inputevt_timer()

Typedefs

typedef void(* inputevt_handler_t )(gpointer data, gint source, inputevt_cond_t condition)
 And the handler function type.


Enumerations

enum  inputevt_cond_t {
  INPUT_EVENT_R = 1 << 0, INPUT_EVENT_W = 1 << 1, INPUT_EVENT_EXCEPTION = 1 << 2, INPUT_EVENT_RX = ((guint) INPUT_EVENT_R | (guint) INPUT_EVENT_EXCEPTION),
  INPUT_EVENT_WX = ((guint) INPUT_EVENT_W | (guint) INPUT_EVENT_EXCEPTION), INPUT_EVENT_RW = ((guint) INPUT_EVENT_R | (guint) INPUT_EVENT_W), INPUT_EVENT_RWX = ((guint) INPUT_EVENT_RW | (guint) INPUT_EVENT_EXCEPTION)
}
 This mimics the GDK input condition type. More...


Functions

void inputevt_init (void)
 Performs module initialization.

void inputevt_close (void)
 Performs module cleanup.

guint inputevt_add (gint source, inputevt_cond_t condition, inputevt_handler_t handler, gpointer data)
 This emulates the GDK input interface.

const gchar * inputevt_cond_to_string (inputevt_cond_t cond)


Define Documentation

#define inputevt_remove source   )     (g_source_remove(source))
 

 
#define inputevt_timer  ) 
 


Typedef Documentation

typedef void(* inputevt_handler_t)( gpointer data, gint source, inputevt_cond_t condition )
 

And the handler function type.


Enumeration Type Documentation

enum inputevt_cond_t
 

This mimics the GDK input condition type.

Enumeration values:
INPUT_EVENT_R 
INPUT_EVENT_W 
INPUT_EVENT_EXCEPTION 
INPUT_EVENT_RX 
INPUT_EVENT_WX 
INPUT_EVENT_RW 
INPUT_EVENT_RWX 


Function Documentation

guint inputevt_add gint  fd,
inputevt_cond_t  cond,
inputevt_handler_t  handler,
gpointer  data
 

This emulates the GDK input interface.

A replacement for gdk_input_add(). Behaves exactly the same, except destroy notification has been removed (since gtkg does not use it).

void inputevt_close void   ) 
 

Performs module cleanup.

const gchar* inputevt_cond_to_string inputevt_cond_t  cond  ) 
 

void inputevt_init void   ) 
 

Performs module initialization.


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