cli,voice: minor coding style fixes
This commit is contained in:
@@ -153,14 +153,14 @@ print_call_info (MMCall *call)
|
||||
g_print ("CALL '%s'\n", mm_call_get_path (call));
|
||||
g_print (" -------------------------------\n"
|
||||
" Global | number: '%s'\n", VALIDATE (mm_call_get_number (call)));
|
||||
g_print (" | direction: '%s'\n", mm_call_direction_get_string( mm_call_get_direction (call) ) );
|
||||
g_print (" | direction: '%s'\n", mm_call_direction_get_string (mm_call_get_direction (call)) );
|
||||
|
||||
g_print (" -------------------------------\n"
|
||||
" Properties | state: '%s'\n", mm_call_state_get_string (mm_call_get_state (call)));
|
||||
|
||||
if (mm_call_get_state_reason(call) != MM_CALL_STATE_REASON_UNKNOWN)
|
||||
g_print (" | state reason: '%s'\n",
|
||||
mm_call_state_reason_get_string(mm_call_get_state_reason(call)));
|
||||
mm_call_state_reason_get_string(mm_call_get_state_reason (call)));
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -287,7 +287,7 @@ get_call_ready (GObject *source,
|
||||
|
||||
/* Requesting to start the call? */
|
||||
if (start_flag) {
|
||||
mm_call_start(ctx->call,
|
||||
mm_call_start (ctx->call,
|
||||
ctx->cancellable,
|
||||
(GAsyncReadyCallback)start_ready,
|
||||
NULL);
|
||||
@@ -296,7 +296,7 @@ get_call_ready (GObject *source,
|
||||
|
||||
/* Requesting to accept the call? */
|
||||
if (accept_flag) {
|
||||
mm_call_accept(ctx->call,
|
||||
mm_call_accept (ctx->call,
|
||||
ctx->cancellable,
|
||||
(GAsyncReadyCallback)accept_ready,
|
||||
NULL);
|
||||
@@ -305,7 +305,7 @@ get_call_ready (GObject *source,
|
||||
|
||||
/* Requesting to hangup the call? */
|
||||
if (hangup_flag) {
|
||||
mm_call_hangup(ctx->call,
|
||||
mm_call_hangup (ctx->call,
|
||||
ctx->cancellable,
|
||||
(GAsyncReadyCallback)hangup_ready,
|
||||
NULL);
|
||||
@@ -314,7 +314,7 @@ get_call_ready (GObject *source,
|
||||
|
||||
/* Requesting to send tone the call? */
|
||||
if (tone_request) {
|
||||
mm_call_send_tone(ctx->call,
|
||||
mm_call_send_tone (ctx->call,
|
||||
tone_request,
|
||||
ctx->cancellable,
|
||||
(GAsyncReadyCallback)send_tone_ready,
|
||||
|
@@ -1250,12 +1250,13 @@ mmcli_get_call_finish (GAsyncResult *res,
|
||||
return g_object_ref (ctx->call);
|
||||
}
|
||||
|
||||
void mmcli_get_call (GDBusConnection *connection,
|
||||
void
|
||||
mmcli_get_call (GDBusConnection *connection,
|
||||
const gchar *path_or_index,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data) {
|
||||
|
||||
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,
|
||||
MMCall *
|
||||
mmcli_get_call_sync (GDBusConnection *connection,
|
||||
const gchar *path_or_index,
|
||||
MMManager **o_manager,
|
||||
MMObject **o_object) {
|
||||
|
||||
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;
|
||||
|
Reference in New Issue
Block a user