diff options
author | Eion Robb <eion@robbmob.com> | 2010-01-01 13:29:45 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2010-01-01 13:29:45 +0300 |
commit | a11a3f5bbac568332f09ccbeb429381c7a704723 (patch) | |
tree | 256c5c8b74814d6a8af3364948618c4b3e4c6b08 /skype_messaging_dbus.c | |
parent | 275a87ca85828a3e4ec2661a3265cbe560a6fd27 (diff) |
Fix up formatting for some reason
Diffstat (limited to 'skype_messaging_dbus.c')
-rw-r--r-- | skype_messaging_dbus.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/skype_messaging_dbus.c b/skype_messaging_dbus.c index 588a1e6..21a3bf9 100644 --- a/skype_messaging_dbus.c +++ b/skype_messaging_dbus.c @@ -73,18 +73,18 @@ skype_connect() } } - if (proxy == NULL) - { + if (proxy == NULL) + { proxy = dbus_g_proxy_new_for_name (connection, "com.Skype.API", "/com/Skype", "com.Skype.API"); - if (proxy == NULL) - return FALSE; + if (proxy == NULL) + return FALSE; - vtable.message_function = &skype_notify_handler; - dbus_connection_register_object_path(dbus_g_connection_get_connection(connection), "/com/Skype/Client", &vtable, NULL); - } + vtable.message_function = &skype_notify_handler; + dbus_connection_register_object_path(dbus_g_connection_get_connection(connection), "/com/Skype/Client", &vtable, NULL); + } return TRUE; } @@ -111,19 +111,19 @@ send_message(char* message) if (!dbus_g_proxy_call (proxy, "Invoke", &error, G_TYPE_STRING, message, G_TYPE_INVALID, G_TYPE_STRING, &str, G_TYPE_INVALID)) { - if (error && error->message) - { - skype_debug_info("skype_dbus", "Error sending message: %s\n", error->message); - if (message[0] == '#') - { - //We're expecting a response + if (error && error->message) + { + skype_debug_info("skype_dbus", "Error sending message: %s\n", error->message); + if (message[0] == '#') + { + //We're expecting a response sscanf(message, "#%d ", &message_num); sprintf(error_return, "#%d ERROR", message_num); skype_message_received(g_strdup(error_return)); - } - } - else - skype_debug_info("skype_dbus", "no response\n"); + } + } else { + skype_debug_info("skype_dbus", "no response\n"); + } } if (str != NULL) { |