resource-monitor: Add a body of the dbus request message for applying the change... 24/302824/1
authorSung-hun Kim <sfoon.kim@samsung.com>
Thu, 14 Dec 2023 07:57:24 +0000 (16:57 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Thu, 14 Dec 2023 08:16:12 +0000 (17:16 +0900)
Due to the change of enlightenment, the dbus request message should have
a body which includes a string type argument.

For understanding the change of enlightenment, please refer the below commit:

 https://review.tizen.org/gerrit/gitweb?p=platform/upstream/enlightenment.git;a=commit;h=fa89f84645623c0522c1d6327ec60c45648da0af

Change-Id: Ida0553cfd0bb2172ae3145f03d89e53d290b72e7
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
src/resource/resource-display.c

index d34f05ddb92e75605c74c1f35b19ba19d52d0bb1..7e090df359ee8db491107cf430a488eb366da4f7 100644 (file)
@@ -92,6 +92,12 @@ static int display_read_fps(int resource_index)
                goto err_conn;
        }
 
+       /*
+        * "none" means the request wants to get the FPS values of all windows.
+        * To get the FPS value of the specific window, the window id should be
+        * given instead of "none"
+        */
+       g_dbus_message_set_body(msg, g_variant_new("(s)", "none"));
        reply = g_dbus_connection_send_message_with_reply_sync(conn, msg,
                                        G_DBUS_SEND_MESSAGE_FLAGS_NONE,
                                        G_MAXINT, NULL, NULL, &err);