Use socket for IPC of focus APIs instead of the DBus
[platform/core/multimedia/libmm-sound.git] / server / mm_sound_mgr_ipc_dbus.c
index bd2605d..059ac19 100644 (file)
@@ -65,9 +65,6 @@ static GDBusConnection* conn_g;
 static void handle_method_play_file_start_with_stream_info(GDBusMethodInvocation* invocation);
 static void handle_method_play_file_stop(GDBusMethodInvocation* invocation);
 static void handle_method_play_dtmf_with_stream_info(GDBusMethodInvocation* invocation);
-#ifdef FOCUS_INTEGRATION
-static void handle_method_clear_focus(GDBusMethodInvocation* invocation);
-#endif
 static void handle_method_test(GDBusMethodInvocation* invocation);
 
 /* Currently , Just using method's name and handler */
@@ -317,34 +314,6 @@ send_reply:
        debug_fleave();
 }
 
-#ifdef FOCUS_INTEGRATION
-static void handle_method_clear_focus(GDBusMethodInvocation* invocation)
-{
-       int ret = MM_ERROR_NONE;
-       int pid = 0;
-       GVariant *params = NULL;
-
-       debug_fenter();
-
-       if (!(params = g_dbus_method_invocation_get_parameters(invocation))) {
-               debug_error("Parameter for Method is NULL");
-               ret = MM_ERROR_SOUND_INTERNAL;
-               goto send_reply;
-       }
-
-       g_variant_get(params, "(i)", &pid);
-       ret = _MMSoundMgrIpcClearFocus(pid);
-
-send_reply:
-       if (ret == MM_ERROR_NONE)
-               _method_call_return_value(invocation, g_variant_new("()"));
-       else
-               _method_call_return_error(invocation, ret);
-
-       debug_fleave();
-}
-#endif
-
 static void handle_method_call(GDBusConnection *connection,
                                                        const gchar *sender,
                                                        const gchar *object_path,