Main Page | Modules | Alphabetical List | Data Structures | Directories | 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 "common.h"

Go to the source code of this file.

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)
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)
size_t inputevt_data_available (void)
void inputevt_remove (guint id)


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  ) 
 

size_t inputevt_data_available void   ) 
 

void inputevt_init void   ) 
 

void inputevt_remove guint  id  ) 
 


Generated on Sat Jun 30 17:53:28 2007 for gtk-gnutella by  doxygen 1.3.9.1