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 ("CALL '%s'\n", mm_call_get_path (call));
|
||||||
g_print (" -------------------------------\n"
|
g_print (" -------------------------------\n"
|
||||||
" Global | number: '%s'\n", VALIDATE (mm_call_get_number (call)));
|
" 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"
|
g_print (" -------------------------------\n"
|
||||||
" Properties | state: '%s'\n", mm_call_state_get_string (mm_call_get_state (call)));
|
" 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)
|
if (mm_call_get_state_reason(call) != MM_CALL_STATE_REASON_UNKNOWN)
|
||||||
g_print (" | state reason: '%s'\n",
|
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
|
static void
|
||||||
@@ -287,7 +287,7 @@ get_call_ready (GObject *source,
|
|||||||
|
|
||||||
/* Requesting to start the call? */
|
/* Requesting to start the call? */
|
||||||
if (start_flag) {
|
if (start_flag) {
|
||||||
mm_call_start(ctx->call,
|
mm_call_start (ctx->call,
|
||||||
ctx->cancellable,
|
ctx->cancellable,
|
||||||
(GAsyncReadyCallback)start_ready,
|
(GAsyncReadyCallback)start_ready,
|
||||||
NULL);
|
NULL);
|
||||||
@@ -296,7 +296,7 @@ get_call_ready (GObject *source,
|
|||||||
|
|
||||||
/* Requesting to accept the call? */
|
/* Requesting to accept the call? */
|
||||||
if (accept_flag) {
|
if (accept_flag) {
|
||||||
mm_call_accept(ctx->call,
|
mm_call_accept (ctx->call,
|
||||||
ctx->cancellable,
|
ctx->cancellable,
|
||||||
(GAsyncReadyCallback)accept_ready,
|
(GAsyncReadyCallback)accept_ready,
|
||||||
NULL);
|
NULL);
|
||||||
@@ -305,7 +305,7 @@ get_call_ready (GObject *source,
|
|||||||
|
|
||||||
/* Requesting to hangup the call? */
|
/* Requesting to hangup the call? */
|
||||||
if (hangup_flag) {
|
if (hangup_flag) {
|
||||||
mm_call_hangup(ctx->call,
|
mm_call_hangup (ctx->call,
|
||||||
ctx->cancellable,
|
ctx->cancellable,
|
||||||
(GAsyncReadyCallback)hangup_ready,
|
(GAsyncReadyCallback)hangup_ready,
|
||||||
NULL);
|
NULL);
|
||||||
@@ -314,7 +314,7 @@ get_call_ready (GObject *source,
|
|||||||
|
|
||||||
/* Requesting to send tone the call? */
|
/* Requesting to send tone the call? */
|
||||||
if (tone_request) {
|
if (tone_request) {
|
||||||
mm_call_send_tone(ctx->call,
|
mm_call_send_tone (ctx->call,
|
||||||
tone_request,
|
tone_request,
|
||||||
ctx->cancellable,
|
ctx->cancellable,
|
||||||
(GAsyncReadyCallback)send_tone_ready,
|
(GAsyncReadyCallback)send_tone_ready,
|
||||||
|
@@ -1250,12 +1250,13 @@ mmcli_get_call_finish (GAsyncResult *res,
|
|||||||
return g_object_ref (ctx->call);
|
return g_object_ref (ctx->call);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mmcli_get_call (GDBusConnection *connection,
|
void
|
||||||
|
mmcli_get_call (GDBusConnection *connection,
|
||||||
const gchar *path_or_index,
|
const gchar *path_or_index,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data) {
|
gpointer user_data)
|
||||||
|
{
|
||||||
GetVoiceContext *ctx;
|
GetVoiceContext *ctx;
|
||||||
|
|
||||||
ctx = g_new0 (GetVoiceContext, 1);
|
ctx = g_new0 (GetVoiceContext, 1);
|
||||||
@@ -1272,11 +1273,12 @@ void mmcli_get_call (GDBusConnection *connection,
|
|||||||
ctx);
|
ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
MMCall *mmcli_get_call_sync (GDBusConnection *connection,
|
MMCall *
|
||||||
|
mmcli_get_call_sync (GDBusConnection *connection,
|
||||||
const gchar *path_or_index,
|
const gchar *path_or_index,
|
||||||
MMManager **o_manager,
|
MMManager **o_manager,
|
||||||
MMObject **o_object) {
|
MMObject **o_object)
|
||||||
|
{
|
||||||
MMManager *manager;
|
MMManager *manager;
|
||||||
GList *modems;
|
GList *modems;
|
||||||
GList *l;
|
GList *l;
|
||||||
@@ -1340,7 +1342,6 @@ MMCall *mmcli_get_call_sync (GDBusConnection *connection,
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Common options */
|
/* Common options */
|
||||||
static gchar *modem_str;
|
static gchar *modem_str;
|
||||||
static gchar *bearer_str;
|
static gchar *bearer_str;
|
||||||
|
Reference in New Issue
Block a user