diff options
Diffstat (limited to 'src/dropbox-client.c')
-rw-r--r-- | src/dropbox-client.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dropbox-client.c b/src/dropbox-client.c index 8563197..6a08da0 100644 --- a/src/dropbox-client.c +++ b/src/dropbox-client.c @@ -31,7 +31,7 @@ static void hook_on_connect(DropboxClient *dc) { dc->hook_connect_called = TRUE; - + if (dc->command_connect_called) { debug("client connection"); g_hook_list_invoke(&(dc->onconnect_hooklist), FALSE); @@ -43,7 +43,7 @@ hook_on_connect(DropboxClient *dc) { static void command_on_connect(DropboxClient *dc) { dc->command_connect_called = TRUE; - + if (dc->hook_connect_called) { debug("client connection"); g_hook_list_invoke(&(dc->onconnect_hooklist), FALSE); @@ -55,7 +55,7 @@ command_on_connect(DropboxClient *dc) { static void command_on_disconnect(DropboxClient *dc) { dc->command_disconnect_called = TRUE; - + if (dc->hook_disconnect_called) { debug("client disconnect"); g_hook_list_invoke(&(dc->ondisconnect_hooklist), FALSE); @@ -70,7 +70,7 @@ command_on_disconnect(DropboxClient *dc) { static void hook_on_disconnect(DropboxClient *dc) { dc->hook_disconnect_called = TRUE; - + if (dc->command_disconnect_called) { debug("client disconnect"); g_hook_list_invoke(&(dc->ondisconnect_hooklist), FALSE); @@ -109,18 +109,18 @@ dropbox_client_setup(DropboxClient *dc) { dc->hook_disconnect_called = dc->command_disconnect_called = FALSE; dc->hook_connect_called = dc->command_connect_called = FALSE; - caja_dropbox_hooks_add_on_connect_hook(&(dc->hookserv), + caja_dropbox_hooks_add_on_connect_hook(&(dc->hookserv), (DropboxHookClientConnectHook) hook_on_connect, dc); - + dropbox_command_client_add_on_connect_hook(&(dc->dcc), (DropboxCommandClientConnectHook) command_on_connect, dc); - - caja_dropbox_hooks_add_on_disconnect_hook(&(dc->hookserv), + + caja_dropbox_hooks_add_on_disconnect_hook(&(dc->hookserv), (DropboxHookClientConnectHook) hook_on_disconnect, dc); - + dropbox_command_client_add_on_disconnect_hook(&(dc->dcc), (DropboxCommandClientConnectHook) command_on_disconnect, dc); @@ -132,11 +132,11 @@ dropbox_client_add_on_disconnect_hook(DropboxClient *dc, DropboxClientConnectHook dhcch, gpointer ud) { GHook *newhook; - + newhook = g_hook_alloc(&(dc->ondisconnect_hooklist)); newhook->func = dhcch; newhook->data = ud; - + g_hook_append(&(dc->ondisconnect_hooklist), newhook); } @@ -146,11 +146,11 @@ dropbox_client_add_on_connect_hook(DropboxClient *dc, DropboxClientConnectHook dhcch, gpointer ud) { GHook *newhook; - + newhook = g_hook_alloc(&(dc->onconnect_hooklist)); newhook->func = dhcch; newhook->data = ud; - + g_hook_append(&(dc->onconnect_hooklist), newhook); } |