mmifw: remove unnecessary sender information in get_focus/set_state request 29/264129/1
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 19 Jul 2021 10:49:22 +0000 (19:49 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 12:14:51 +0000 (21:14 +0900)
Change-Id: I4877b9d006d791e9fd4e1097db23f318d19a3dd9
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/interface/mmifw_proxy.c
src/interface/mmifw_proxy.h
src/mmifw.c
tidl/mmifw.tidl

index 30c3769..1fbd2fd 100644 (file)
@@ -3429,7 +3429,7 @@ void rpc_port_proxy_mmifw_invoke_deregister_cb(rpc_port_proxy_mmifw_h h)
        set_last_result(r);
 }
 
-void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h, const char *sender)
+void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h)
 {
        rpc_port_parcel_h parcel;
        int r;
@@ -3446,7 +3446,6 @@ void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h, const char
 
        rpc_port_parcel_create(&parcel);
        rpc_port_parcel_write_int32(parcel, mmifw_METHOD_get_focus);
-       rpc_port_parcel_write_string(parcel, sender ? sender : "");
 
        r = rpc_port_parcel_send(parcel, h->port);
        if (r != RPC_PORT_ERROR_NONE) {
@@ -3458,7 +3457,7 @@ void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h, const char
        set_last_result(r);
 }
 
-void rpc_port_proxy_mmifw_invoke_set_state(rpc_port_proxy_mmifw_h h, const char *sender, int state)
+void rpc_port_proxy_mmifw_invoke_set_state(rpc_port_proxy_mmifw_h h, int state)
 {
        rpc_port_parcel_h parcel;
        int r;
@@ -3475,7 +3474,6 @@ void rpc_port_proxy_mmifw_invoke_set_state(rpc_port_proxy_mmifw_h h, const char
 
        rpc_port_parcel_create(&parcel);
        rpc_port_parcel_write_int32(parcel, mmifw_METHOD_set_state);
-       rpc_port_parcel_write_string(parcel, sender ? sender : "");
        rpc_port_parcel_write_int32(parcel, state);
 
        r = rpc_port_parcel_send(parcel, h->port);
index 0b08530..0897594 100644 (file)
@@ -315,9 +315,9 @@ int rpc_port_proxy_mmifw_invoke_register_cb(rpc_port_proxy_mmifw_h h, rpc_port_m
 
 void rpc_port_proxy_mmifw_invoke_deregister_cb(rpc_port_proxy_mmifw_h h);
 
-void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h, const char *sender);
+void rpc_port_proxy_mmifw_invoke_get_focus(rpc_port_proxy_mmifw_h h);
 
-void rpc_port_proxy_mmifw_invoke_set_state(rpc_port_proxy_mmifw_h h, const char *sender, int state);
+void rpc_port_proxy_mmifw_invoke_set_state(rpc_port_proxy_mmifw_h h, int state);
 
 int rpc_port_proxy_mmifw_connect_sync(rpc_port_proxy_mmifw_h h);
 
index cc784fd..4a3957e 100644 (file)
@@ -164,7 +164,7 @@ mmi_request_send_get_focus(mmi_handle h)
                return MMI_RESULT_FAIL;
        }
 
-       rpc_port_proxy_mmifw_invoke_get_focus(h->rpc_h, h->app_id);
+       rpc_port_proxy_mmifw_invoke_get_focus(h->rpc_h);
        return res;
 }
 
@@ -200,7 +200,7 @@ mmi_request_send_set_state(mmi_handle h, mmi_state state)
                return res;
        }
 
-       rpc_port_proxy_mmifw_invoke_set_state(h->rpc_h, h->app_id, state);
+       rpc_port_proxy_mmifw_invoke_set_state(h->rpc_h, state);
        return res;
 }
 
index 6f95f65..9c49b2b 100644 (file)
@@ -73,7 +73,7 @@ interface mmifw {
                    action_event_cb action_cb,
                    feedback_event_cb feedback_cb);
    void deregister_cb() async;
-   void get_focus(string sender) async;
-   void set_state(string sender, int state) async;
+   void get_focus() async;
+   void set_state(int state) async;
 }