From: Sung-hun Kim Date: Thu, 14 Dec 2023 07:57:24 +0000 (+0900) Subject: resource-monitor: Add a body of the dbus request message for applying the change... X-Git-Tag: accepted/tizen/unified/20240308.174124~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f51b3c3941dbed06ded3d6f7001f7d271770ac6c;p=platform%2Fcore%2Fsystem%2Fpass.git resource-monitor: Add a body of the dbus request message for applying the change of enlightenment 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 --- diff --git a/src/resource/resource-display.c b/src/resource/resource-display.c index d34f05d..7e090df 100644 --- a/src/resource/resource-display.c +++ b/src/resource/resource-display.c @@ -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);