Basically this is a duplicate of the GDK input facilities, without the features gtkg does not use.
The intent here is to break the GDK dependency but retain the same behavior, to avoid disturbing too much of the existing code.
|
Data Structures |
struct | inputevt_relay_t |
| The relay structure is used as a bridge to provide GDK-compatible input condition flags. More...
|
struct | relay_list |
Defines |
#define | READ_CONDITION (G_IO_IN | G_IO_PRI) |
#define | WRITE_CONDITION (G_IO_OUT) |
#define | EXCEPTION_CONDITION (G_IO_ERR | G_IO_HUP | G_IO_NVAL) |
#define | CASE(x) case x: return STRINGIFY(x) |
#define | BIT_ARRAY_BYTE(base, i) base[i / (8 * sizeof base[0])] |
#define | BIT_ARRAY_BIT(base, i) (1UL << (i % (8 * sizeof base[0]))) |
Typedefs |
typedef relay_list | relay_list_t |
Functions |
| RCSID ("$Id:inputevt.c, v 1.43 2005/09/30 22:07:43 cbiere Exp $") |
const gchar * | inputevt_cond_to_string (inputevt_cond_t cond) |
gulong * | bit_array_realloc (gulong *base, size_t n) |
void | bit_array_set (gulong *base, size_t i) |
void | bit_array_clear (gulong *base, size_t i) |
void | bit_array_flip (gulong *base, size_t i) |
gboolean | bit_array_get (const gulong *base, size_t i) |
void | bit_array_clear_range (gulong *base, size_t from, size_t to) |
size_t | bit_array_first_clear (const gulong *base, size_t from, size_t to) |
void | inputevt_relay_destroy (gpointer data) |
| Frees the relay structure when its time comes.
|
gboolean | inputevt_dispatch (GIOChannel *source, GIOCondition condition, gpointer data) |
| Relays the event to the registered handler function.
|
guint | inputevt_add_source_with_glib (inputevt_relay_t *relay) |
guint | inputevt_add_source (inputevt_relay_t *relay) |
guint | inputevt_add (gint fd, inputevt_cond_t cond, inputevt_handler_t handler, gpointer data) |
| This emulates the GDK input interface.
|
void | inputevt_init (void) |
| Performs module initialization.
|
void | inputevt_close (void) |
| Performs module cleanup.
|
Variables |
const inputevt_handler_t | zero_handler |