libgdbus: add dbus signal for power state change 84/285084/2 accepted/tizen/unified/20221220.180317
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 6 Dec 2022 02:15:52 +0000 (11:15 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 6 Dec 2022 04:54:02 +0000 (13:54 +0900)
Change-Id: I8b4b22f7bfb5e4d662ee531d5b170ada2f09acdf
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/libgdbus/dbus-iface-system.h

index 1a98990..f4d6a8d 100644 (file)
@@ -78,6 +78,19 @@ extern "C" {
 /* Power service: set resetkey disable operations about power */
 #define DEVICED_PATH_POWER                  DEVICED_OBJECT_PATH"/Power"
 #define DEVICED_INTERFACE_POWER             DEVICED_INTERFACE_NAME".Power"
+/* Power service : signals on changing power state */
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_START                "PowerChangeStateToStart"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_NORMAL               "PowerChangeStateToNormal"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_SLEEP                "PowerChangeStateToSleep"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_POWEROFF             "PowerChangeStateToPowerOff"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_REBOOT               "PowerChangeStateToReboot"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_EXIT                 "PowerChangeStateToExit"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_RESUMING_EARLY        "PowerChangeStateToResumingEarly"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_RESUMING             "PowerChangeStateToResuming"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_RESUMING_LATE        "PowerChangeStateToResumingLate"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_SUSPENDING_EARLY     "PowerChangeStateToSuspendingEarly"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_SUSPENDING           "PowerChangeStateToSuspending"
+#define DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_SUSPENDING_LATE      "PowerChangeStateToSuspendingLate"
 /* Storage service: get storage size operatioins about storage */
 #define DEVICED_PATH_STORAGE                DEVICED_OBJECT_PATH"/Storage"
 #define DEVICED_INTERFACE_STORAGE           DEVICED_INTERFACE_NAME".storage"