[gnome-flashback] screensaver: add more D-Bus interface files



commit 935b3b4b7c40f1fa2dc11f17c599a5e71f69a3f8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Dec 10 21:37:30 2019 +0200

    screensaver: add more D-Bus interface files

 gnome-flashback/libscreensaver/Makefile.am         | 36 ++++++++++++++++++++++
 .../org.freedesktop.Accounts.User.xml              | 11 +++++++
 .../libscreensaver/org.freedesktop.Accounts.xml    | 14 +++++++++
 .../org.freedesktop.DisplayManager.Seat.xml        | 13 ++++++++
 .../libscreensaver/org.freedesktop.login1.Seat.xml | 11 +++++++
 5 files changed, 85 insertions(+)
---
diff --git a/gnome-flashback/libscreensaver/Makefile.am b/gnome-flashback/libscreensaver/Makefile.am
index cf113d1..4cda6d4 100644
--- a/gnome-flashback/libscreensaver/Makefile.am
+++ b/gnome-flashback/libscreensaver/Makefile.am
@@ -37,12 +37,36 @@ libscreensaver_la_LIBADD = \
        $(SCREENSAVER_LIBS) \
        $(NULL)
 
+gf-accounts-gen.h:
+gf-accounts-gen.c: org.freedesktop.Accounts.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+               --generate-c-code gf-accounts-gen \
+               $(srcdir)/org.freedesktop.Accounts.xml
+
+gf-accounts-user-gen.h:
+gf-accounts-user-gen.c: org.freedesktop.Accounts.User.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+               --generate-c-code gf-accounts-user-gen \
+               $(srcdir)/org.freedesktop.Accounts.User.xml
+
+gf-dm-seat-gen.h:
+gf-dm-seat-gen.c: org.freedesktop.DisplayManager.Seat.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+               --generate-c-code gf-dm-seat-gen \
+               $(srcdir)/org.freedesktop.DisplayManager.Seat.xml
+
 gf-login-manager-gen.h:
 gf-login-manager-gen.c: org.freedesktop.login1.Manager.xml
        $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
                --generate-c-code gf-login-manager-gen \
                $(srcdir)/org.freedesktop.login1.Manager.xml
 
+gf-login-seat-gen.h:
+gf-login-seat-gen.c: org.freedesktop.login1.Seat.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+               --generate-c-code gf-login-seat-gen \
+               $(srcdir)/org.freedesktop.login1.Seat.xml
+
 gf-login-session-gen.h:
 gf-login-session-gen.c: org.freedesktop.login1.Session.xml
        $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
@@ -62,8 +86,16 @@ gf-sm-presence-gen.c: org.gnome.SessionManager.Presence.xml
                $(srcdir)/org.gnome.SessionManager.Presence.xml
 
 BUILT_SOURCES = \
+       gf-accounts-gen.c \
+       gf-accounts-gen.h \
+       gf-accounts-user-gen.c \
+       gf-accounts-user-gen.h \
+       gf-dm-seat-gen.c \
+       gf-dm-seat-gen.h \
        gf-login-manager-gen.c \
        gf-login-manager-gen.h \
+       gf-login-seat-gen.c \
+       gf-login-seat-gen.h \
        gf-login-session-gen.c \
        gf-login-session-gen.h \
        gf-screensaver-gen.c \
@@ -73,7 +105,11 @@ BUILT_SOURCES = \
        $(NULL)
 
 EXTRA_DIST = \
+       org.freedesktop.Accounts.xml \
+       org.freedesktop.Accounts.User.xml \
+       org.freedesktop.DisplayManager.Seat.xml \
        org.freedesktop.login1.Manager.xml \
+       org.freedesktop.login1.Seat.xml \
        org.freedesktop.login1.Session.xml \
        org.gnome.ScreenSaver.xml \
        org.gnome.SessionManager.Presence.xml \
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.Accounts.User.xml 
b/gnome-flashback/libscreensaver/org.freedesktop.Accounts.User.xml
new file mode 100644
index 0000000..7b567a3
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.Accounts.User.xml
@@ -0,0 +1,11 @@
+<?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.Accounts.User">
+    <annotation name="org.gtk.GDBus.C.Name" value="AccountsUserGen" />
+
+    <property name="IconFile" type="s" access="read" />
+
+  </interface>
+</node>
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.Accounts.xml 
b/gnome-flashback/libscreensaver/org.freedesktop.Accounts.xml
new file mode 100644
index 0000000..448b4e2
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.Accounts.xml
@@ -0,0 +1,14 @@
+<?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.Accounts">
+    <annotation name="org.gtk.GDBus.C.Name" value="AccountsGen" />
+
+    <method name="FindUserByName">
+      <arg name="name" type="s" direction="in" />
+      <arg name="user" type="o" direction="out" />
+    </method>
+
+  </interface>
+</node>
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.DisplayManager.Seat.xml 
b/gnome-flashback/libscreensaver/org.freedesktop.DisplayManager.Seat.xml
new file mode 100644
index 0000000..5255829
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.DisplayManager.Seat.xml
@@ -0,0 +1,13 @@
+<?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.DisplayManager.Seat">
+    <annotation name="org.gtk.GDBus.C.Name" value="DmSeatGen" />
+
+    <method name="SwitchToGreeter" />
+
+    <property name="CanSwitch" type="b" access="read" />
+
+  </interface>
+</node>
diff --git a/gnome-flashback/libscreensaver/org.freedesktop.login1.Seat.xml 
b/gnome-flashback/libscreensaver/org.freedesktop.login1.Seat.xml
new file mode 100644
index 0000000..ea60a2f
--- /dev/null
+++ b/gnome-flashback/libscreensaver/org.freedesktop.login1.Seat.xml
@@ -0,0 +1,11 @@
+<?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.Seat">
+    <annotation name="org.gtk.GDBus.C.Name" value="LoginSeatGen" />
+
+    <property name="CanMultiSession" type="b" access="read" />
+
+  </interface>
+</node>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]