[gnome-flashback] dbus: add org.gnome.Flashback.InputSources interface



commit 4565753eff28e590a357895927c31bbadf25d077
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Dec 22 18:37:26 2019 +0200

    dbus: add org.gnome.Flashback.InputSources interface

 dbus/Makefile.am                          |  9 +++++++++
 dbus/org.gnome.Flashback.InputSources.xml | 24 ++++++++++++++++++++++++
 2 files changed, 33 insertions(+)
---
diff --git a/dbus/Makefile.am b/dbus/Makefile.am
index f6ac106..e4a4a3c 100644
--- a/dbus/Makefile.am
+++ b/dbus/Makefile.am
@@ -87,6 +87,12 @@ gf-gtk-notifications-gen.c: org.gtk.Notifications.xml
                --generate-c-code gf-gtk-notifications-gen \
                $(srcdir)/org.gtk.Notifications.xml
 
+gf-input-sources-gen.h:
+gf-input-sources-gen.c: org.gnome.Flashback.InputSources.xml
+       $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
+               --generate-c-code gf-input-sources-gen \
+               $(srcdir)/org.gnome.Flashback.InputSources.xml
+
 gf-login-manager-gen.h:
 gf-login-manager-gen.c: org.freedesktop.login1.Manager.xml
        $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gf \
@@ -180,6 +186,8 @@ BUILT_SOURCES = \
        gf-file-manager-gen.h \
        gf-gtk-notifications-gen.c \
        gf-gtk-notifications-gen.h \
+       gf-input-sources-gen.c \
+       gf-input-sources-gen.h \
        gf-login-manager-gen.c \
        gf-login-manager-gen.h \
        gf-login-seat-gen.c \
@@ -218,6 +226,7 @@ EXTRA_DIST = \
        org.freedesktop.login1.Session.xml \
        org.freedesktop.Notifications.xml \
        org.freedesktop.UPower.Device.xml \
+       org.gnome.Flashback.InputSources.xml \
        org.gnome.Nautilus.FileOperations.xml \
        org.gnome.ScreenSaver.xml \
        org.gnome.SessionManager.EndSessionDialog.xml \
diff --git a/dbus/org.gnome.Flashback.InputSources.xml b/dbus/org.gnome.Flashback.InputSources.xml
new file mode 100644
index 0000000..499b394
--- /dev/null
+++ b/dbus/org.gnome.Flashback.InputSources.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.Flashback.InputSources">
+    <annotation name="org.gtk.GDBus.C.Name" value="InputSourcesGen" />
+
+    <method name="GetInputSources">
+      <arg type="a(ussb)" name="input_sources" direction="out" />
+      <arg type="a{sv}" name="current_source" direction="out" />
+    </method>
+
+    <method name="Activate">
+      <arg type="u" name="index" direction="in" />
+    </method>
+
+    <method name="ActivateProperty">
+      <arg type="s" name="key" direction="in" />
+    </method>
+
+    <signal name="Changed" />
+
+  </interface>
+</node>


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