diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-10 19:34:46 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-10 19:34:46 +0200 |
commit | ba9edaa568088900145bbd1004c864b7d408c38d (patch) | |
tree | d6bd8b68d9d9ade9b3cb1e4d484751badc3c9bbe /unix.c | |
parent | 67b6766489f1b9b5f2249659b0ddf260e6f8f51b (diff) |
Moved everything to the BitlBee event handling API.
Diffstat (limited to 'unix.c')
-rw-r--r-- | unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -46,7 +46,7 @@ int main( int argc, char *argv[], char **envp ) memset( &global, 0, sizeof( global_t ) ); - global.loop = g_main_new( FALSE ); + b_main_init(); log_init(); @@ -116,7 +116,7 @@ int main( int argc, char *argv[], char **envp ) if( help_init( &(global.help) ) == NULL ) log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); - g_main_run( global.loop ); + b_main_run(); if( global.restart ) { @@ -164,7 +164,7 @@ static void sighandler( int signal ) the user data now (not to mention writing them to disk), so add a timer. */ log_message( LOGLVL_ERROR, "SIGTERM received, cleaning up process." ); - g_timeout_add_full( G_PRIORITY_LOW, 1, (GSourceFunc) bitlbee_shutdown, NULL, NULL ); + b_timeout_add( 1, (b_event_handler) bitlbee_shutdown, NULL ); first = 0; } |