iface-modem-voice: use g_object_connect() to connect all handlers
This commit is contained in:
@@ -2770,37 +2770,16 @@ interface_initialization_step (GTask *task)
|
|||||||
ctx->step++;
|
ctx->step++;
|
||||||
|
|
||||||
case INITIALIZATION_STEP_LAST:
|
case INITIALIZATION_STEP_LAST:
|
||||||
/* We are done without errors! */
|
/* Setup all method handlers */
|
||||||
|
g_object_connect (ctx->skeleton,
|
||||||
/* Handle method invocations */
|
"signal::handle-create-call", G_CALLBACK (handle_create), self,
|
||||||
g_signal_connect (ctx->skeleton,
|
"signal::handle-delete-call", G_CALLBACK (handle_delete), self,
|
||||||
"handle-create-call",
|
"signal::handle-list-calls", G_CALLBACK (handle_list), self,
|
||||||
G_CALLBACK (handle_create),
|
"signal::handle-hangup-and-accept", G_CALLBACK (handle_hangup_and_accept), self,
|
||||||
self);
|
"signal::handle-hold-and-accept", G_CALLBACK (handle_hold_and_accept), self,
|
||||||
g_signal_connect (ctx->skeleton,
|
"signal::handle-hangup-all", G_CALLBACK (handle_hangup_all), self,
|
||||||
"handle-delete-call",
|
"signal::handle-transfer", G_CALLBACK (handle_transfer), self,
|
||||||
G_CALLBACK (handle_delete),
|
NULL);
|
||||||
self);
|
|
||||||
g_signal_connect (ctx->skeleton,
|
|
||||||
"handle-list-calls",
|
|
||||||
G_CALLBACK (handle_list),
|
|
||||||
self);
|
|
||||||
g_signal_connect (ctx->skeleton,
|
|
||||||
"handle-hangup-and-accept",
|
|
||||||
G_CALLBACK (handle_hangup_and_accept),
|
|
||||||
self);
|
|
||||||
g_signal_connect (ctx->skeleton,
|
|
||||||
"handle-hold-and-accept",
|
|
||||||
G_CALLBACK (handle_hold_and_accept),
|
|
||||||
self);
|
|
||||||
g_signal_connect (ctx->skeleton,
|
|
||||||
"handle-hangup-all",
|
|
||||||
G_CALLBACK (handle_hangup_all),
|
|
||||||
self);
|
|
||||||
g_signal_connect (ctx->skeleton,
|
|
||||||
"handle-transfer",
|
|
||||||
G_CALLBACK (handle_transfer),
|
|
||||||
self);
|
|
||||||
|
|
||||||
/* Finally, export the new interface */
|
/* Finally, export the new interface */
|
||||||
mm_gdbus_object_skeleton_set_modem_voice (MM_GDBUS_OBJECT_SKELETON (self),
|
mm_gdbus_object_skeleton_set_modem_voice (MM_GDBUS_OBJECT_SKELETON (self),
|
||||||
|
Reference in New Issue
Block a user