Changeset ba9edaa for protocols/events.h


Ignore:
Timestamp:
2006-05-10T17:34:46Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
13cc96c
Parents:
67b6766
Message:

Moved everything to the BitlBee event handling API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/events.h

    r67b6766 rba9edaa  
    4242        GAIM_INPUT_READ = 1 << 0,
    4343        GAIM_INPUT_WRITE = 1 << 1
    44 } GaimInputCondition;
    45 typedef void (*GaimInputFunction)(gpointer, gint, GaimInputCondition);
     44} b_input_condition;
     45typedef gboolean (*b_event_handler)(gpointer data, gint fd, b_input_condition cond);
    4646
    4747#define GAIM_READ_COND  (G_IO_IN | G_IO_HUP | G_IO_ERR)
     
    4949#define GAIM_ERR_COND   (G_IO_HUP | G_IO_ERR | G_IO_NVAL)
    5050
    51 G_MODULE_EXPORT gint gaim_input_add(int fd, GaimInputCondition cond, GaimInputFunction func, gpointer data);
    52 G_MODULE_EXPORT void gaim_input_remove(gint id);
     51G_MODULE_EXPORT void b_main_init();
     52G_MODULE_EXPORT void b_main_run();
     53G_MODULE_EXPORT void b_main_quit();
    5354
    54 G_MODULE_EXPORT gint bee_timeout_add(gint timeout, GaimInputFunction func, gpointer data, gint priority);
     55G_MODULE_EXPORT gint b_input_add(int fd, b_input_condition cond, b_event_handler func, gpointer data);
     56G_MODULE_EXPORT gint b_timeout_add(gint timeout, b_event_handler func, gpointer data);
     57G_MODULE_EXPORT void b_event_remove(gint id);
     58G_MODULE_EXPORT gboolean b_event_remove_by_data(gpointer data);
    5559
    5660#endif /* _EVENTS_H_ */
Note: See TracChangeset for help on using the changeset viewer.