[gnome-flashback] screensaver: add two extra interface files
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] screensaver: add two extra interface files
- Date: Sun, 31 Jul 2016 22:13:41 +0000 (UTC)
commit 542fd91e070f7af74f1f6a3f2da8473e3a7e8962
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Jul 31 21:42:59 2016 +0300
screensaver: add two extra interface files
gnome-flashback/libscreensaver/Makefile.am | 26 ++++++++++++++++++++
.../org.freedesktop.login1.Manager.xml | 12 +++++++++
.../org.freedesktop.login1.Session.xml | 18 +++++++++++++
3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libscreensaver/Makefile.am b/gnome-flashback/libscreensaver/Makefile.am
index 803a590..d46aafd 100644
--- a/gnome-flashback/libscreensaver/Makefile.am
+++ b/gnome-flashback/libscreensaver/Makefile.am
@@ -29,6 +29,26 @@ libscreensaver_la_LIBADD = \
$(SCREENSAVER_LIBS) \
$(NULL)
+gf-login-manager-gen.h:
+gf-login-manager-gen.c: org.freedesktop.login1.Manager.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop.login1.Manager. \
+ --generate-c-code gf-login-manager-gen \
+ --c-namespace Gf \
+ --annotate "org.freedesktop.login1.Manager" \
+ "org.gtk.GDBus.C.Name" LoginManagerGen \
+ $(srcdir)/org.freedesktop.login1.Manager.xml
+
+gf-login-session-gen.h:
+gf-login-session-gen.c: org.freedesktop.login1.Session.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop.login1.Session. \
+ --generate-c-code gf-login-session-gen \
+ --c-namespace Gf \
+ --annotate "org.freedesktop.login1.Session" \
+ "org.gtk.GDBus.C.Name" LoginSessionGen \
+ $(srcdir)/org.freedesktop.login1.Session.xml
+
gf-screensaver-gen.h:
gf-screensaver-gen.c: org.gnome.ScreenSaver.xml
$(AM_V_GEN) $(GDBUS_CODEGEN) \
@@ -40,11 +60,17 @@ gf-screensaver-gen.c: org.gnome.ScreenSaver.xml
$(srcdir)/org.gnome.ScreenSaver.xml
BUILT_SOURCES = \
+ gf-login-manager-gen.c \
+ gf-login-manager-gen.h \
+ gf-login-session-gen.c \
+ gf-login-session-gen.h \
gf-screensaver-gen.c \
gf-screensaver-gen.h \
$(NULL)
EXTRA_DIST = \
+ org.freedesktop.login1.Manager.xml \
+ org.freedesktop.login1.Session.xml \
org.gnome.ScreenSaver.xml \
$(NULL)
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.login1.Manager.xml
b/gnome-flashback/libscreensaver/org.freedesktop.login1.Manager.xml
new file mode 100644
index 0000000..628a728
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.login1.Manager.xml
@@ -0,0 +1,12 @@
+<?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.freedesktop.login1.Manager">
+
+ <signal name="PrepareForSleep">
+ <arg type="b" direction="out" />
+ </signal>
+
+ </interface>
+</node>
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.login1.Session.xml
b/gnome-flashback/libscreensaver/org.freedesktop.login1.Session.xml
new file mode 100644
index 0000000..9ce5f36
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.login1.Session.xml
@@ -0,0 +1,18 @@
+<?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.freedesktop.login1.Session">
+
+ <property name="Active" type="b" access="read" />
+
+ <method name="SetLockedHint">
+ <arg direction="in" type="b" />
+ </method>
+
+ <signal name="Lock" />
+
+ <signal name="Unlock" />
+
+ </interface>
+</node>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]