diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-05-23 17:30:16 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:39:47 +0200 |
commit | c0e05dbd43bf6b6752ff69b1c27071f88a123923 (patch) | |
tree | 8e685f1b2a66e68b30220b36fff7a6d8e0049977 /cli/mmcli-common.c | |
parent | f67cc379563928ec09e859301d89d7408befcd1c (diff) |
cli,voice: minor coding style fixes
Diffstat (limited to 'cli/mmcli-common.c')
-rw-r--r-- | cli/mmcli-common.c | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/cli/mmcli-common.c b/cli/mmcli-common.c index 0b1df167..10c7fde5 100644 --- a/cli/mmcli-common.c +++ b/cli/mmcli-common.c @@ -1110,7 +1110,7 @@ static void look_for_call_in_modem (GetVoiceContext *ctx); static MMCall * find_call_in_list (GList *list, - const gchar *call_path) + const gchar *call_path) { GList *l; @@ -1128,8 +1128,8 @@ find_call_in_list (GList *list, static void list_call_ready (MMModemVoice *modem, - GAsyncResult *res, - GetVoiceContext *ctx) + GAsyncResult *res, + GetVoiceContext *ctx) { GList *call_list; GError *error = NULL; @@ -1180,9 +1180,9 @@ look_for_call_in_modem (GetVoiceContext *ctx) ctx->call_path, mm_object_get_path (ctx->current)); mm_modem_voice_list_call (modem, - ctx->cancellable, - (GAsyncReadyCallback)list_call_ready, - ctx); + ctx->cancellable, + (GAsyncReadyCallback)list_call_ready, + ctx); g_object_unref (modem); return; } @@ -1193,8 +1193,8 @@ look_for_call_in_modem (GetVoiceContext *ctx) static void get_voice_manager_ready (GDBusConnection *connection, - GAsyncResult *res, - GetVoiceContext *ctx) + GAsyncResult *res, + GetVoiceContext *ctx) { ctx->manager = mmcli_get_manager_finish (res); ctx->modems = g_dbus_object_manager_get_objects (G_DBUS_OBJECT_MANAGER (ctx->manager)); @@ -1237,8 +1237,8 @@ get_call_path (const gchar *path_or_index) MMCall * mmcli_get_call_finish (GAsyncResult *res, - MMManager **o_manager, - MMObject **o_object) + MMManager **o_manager, + MMObject **o_object) { GetVoiceContext *ctx; @@ -1250,12 +1250,13 @@ mmcli_get_call_finish (GAsyncResult *res, return g_object_ref (ctx->call); } -void mmcli_get_call (GDBusConnection *connection, - const gchar *path_or_index, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data) { - +void +mmcli_get_call (GDBusConnection *connection, + const gchar *path_or_index, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) +{ GetVoiceContext *ctx; ctx = g_new0 (GetVoiceContext, 1); @@ -1272,11 +1273,12 @@ void mmcli_get_call (GDBusConnection *connection, ctx); } -MMCall *mmcli_get_call_sync (GDBusConnection *connection, - const gchar *path_or_index, - MMManager **o_manager, - MMObject **o_object) { - +MMCall * +mmcli_get_call_sync (GDBusConnection *connection, + const gchar *path_or_index, + MMManager **o_manager, + MMObject **o_object) +{ MMManager *manager; GList *modems; GList *l; @@ -1340,7 +1342,6 @@ MMCall *mmcli_get_call_sync (GDBusConnection *connection, return found; } - /* Common options */ static gchar *modem_str; static gchar *bearer_str; |