[gnome-flashback] dbus: add two session manager interfaces
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] dbus: add two session manager interfaces
- Date: Sat, 28 Dec 2019 19:11:54 +0000 (UTC)
commit d3b19820fd6f2e86e3607bedda7c88d962a371e5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Dec 28 18:47:12 2019 +0200
dbus: add two session manager interfaces
dbus/Makefile.am | 18 ++++++++++++++++
dbus/org.gnome.SessionManager.ClientPrivate.xml | 24 +++++++++++++++++++++
dbus/org.gnome.SessionManager.xml | 28 +++++++++++++++++++++++++
3 files changed, 70 insertions(+)
---
diff --git a/dbus/Makefile.am b/dbus/Makefile.am
index e4a4a3c..b61145f 100644
--- a/dbus/Makefile.am
+++ b/dbus/Makefile.am
@@ -147,12 +147,24 @@ gf-sd-rfkill-gen.c: org.gnome.SettingsDaemon.Rfkill.xml
--generate-c-code gf-sd-rfkill-gen \
$(srcdir)/org.gnome.SettingsDaemon.Rfkill.xml
+gf-session-manager-gen.h:
+gf-session-manager-gen.c: org.gnome.SessionManager.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+ --generate-c-code gf-session-manager-gen \
+ $(srcdir)/org.gnome.SessionManager.xml
+
gf-shell-gen.h:
gf-shell-gen.c: org.gnome.Shell.xml
$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
--generate-c-code gf-shell-gen \
$(srcdir)/org.gnome.Shell.xml
+gf-sm-client-private-gen.h:
+gf-sm-client-private-gen.c: org.gnome.SessionManager.ClientPrivate.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+ --generate-c-code gf-sm-client-private-gen \
+ $(srcdir)/org.gnome.SessionManager.ClientPrivate.xml
+
gf-sm-presence-gen.h:
gf-sm-presence-gen.c: org.gnome.SessionManager.Presence.xml
$(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
@@ -206,8 +218,12 @@ BUILT_SOURCES = \
gf-screenshot-gen.h \
gf-sd-rfkill-gen.c \
gf-sd-rfkill-gen.h \
+ gf-session-manager-gen.c \
+ gf-session-manager-gen.h \
gf-shell-gen.c \
gf-shell-gen.h \
+ gf-sm-client-private-gen.c \
+ gf-sm-client-private-gen.h \
gf-sm-presence-gen.c \
gf-sm-presence-gen.h \
gf-sn-watcher-v0-gen.c \
@@ -229,8 +245,10 @@ EXTRA_DIST = \
org.gnome.Flashback.InputSources.xml \
org.gnome.Nautilus.FileOperations.xml \
org.gnome.ScreenSaver.xml \
+ org.gnome.SessionManager.ClientPrivate.xml \
org.gnome.SessionManager.EndSessionDialog.xml \
org.gnome.SessionManager.Presence.xml \
+ org.gnome.SessionManager.xml \
org.gnome.SettingsDaemon.Rfkill.xml \
org.gnome.Shell.AudioDeviceSelection.xml \
org.gnome.Shell.Screencast.xml \
diff --git a/dbus/org.gnome.SessionManager.ClientPrivate.xml b/dbus/org.gnome.SessionManager.ClientPrivate.xml
new file mode 100644
index 0000000..ff49b04
--- /dev/null
+++ b/dbus/org.gnome.SessionManager.ClientPrivate.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="org.gnome.SessionManager.ClientPrivate">
+ <annotation name="org.gtk.GDBus.C.Name" value="SmClientPrivateGen" />
+
+ <method name="EndSessionResponse">
+ <arg name="is_ok" direction="in" type="b" />
+ <arg name="reason" direction="in" type="s" />
+ </method>
+
+ <signal name="QueryEndSession">
+ <arg name="flags" type="u" direction="in" />
+ </signal>
+
+ <signal name="EndSession">
+ <arg name="flags" type="u" direction="in" />
+ </signal>
+
+ <signal name="Stop" />
+
+ </interface>
+</node>
diff --git a/dbus/org.gnome.SessionManager.xml b/dbus/org.gnome.SessionManager.xml
new file mode 100644
index 0000000..9576bb8
--- /dev/null
+++ b/dbus/org.gnome.SessionManager.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="org.gnome.SessionManager">
+ <annotation name="org.gtk.GDBus.C.Name" value="SessionManagerGen" />
+
+ <method name="Setenv">
+ <arg name="variable" direction="in" type="s" />
+ <arg name="value" direction="in" type="s" />
+ </method>
+
+ <method name="RegisterClient">
+ <arg name="app_id" direction="in" type="s" />
+ <arg name="client_startup_id" direction="in" type="s" />
+ <arg name="client_id" direction="out" type="o" />
+ </method>
+
+ <method name="UnregisterClient">
+ <arg name="client_id" direction="in" type="o" />
+ </method>
+
+ <method name="IsSessionRunning">
+ <arg name="running" direction="out" type="b" />
+ </method>
+
+ </interface>
+</node>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]