[gnome-flashback] notifications: add interface files
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] notifications: add interface files
- Date: Thu, 18 Feb 2016 12:21:55 +0000 (UTC)
commit 3bd581f338cca19e8a06b5ee72f4689608b39068
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Feb 18 13:59:08 2016 +0200
notifications: add interface files
gnome-flashback/libnotifications/Makefile.am | 63 ++++++++++++++++++++
.../org.freedesktop.Application.xml | 18 ++++++
.../libnotifications/org.freedesktop.DBus.xml | 13 ++++
.../org.freedesktop.Notifications.xml | 45 ++++++++++++++
.../libnotifications/org.gtk.Notifications.xml | 19 ++++++
5 files changed, 158 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/Makefile.am b/gnome-flashback/libnotifications/Makefile.am
index d1dae35..15948d0 100644
--- a/gnome-flashback/libnotifications/Makefile.am
+++ b/gnome-flashback/libnotifications/Makefile.am
@@ -17,6 +17,7 @@ libnotifications_la_CFLAGS = \
libnotifications_la_SOURCES = \
gf-notifications.c \
gf-notifications.h \
+ $(BUILT_SOURCES) \
$(NULL)
libnotifications_la_LDFLAGS = \
@@ -28,4 +29,66 @@ libnotifications_la_LIBADD = \
$(NOTIFICATIONS_LIBS) \
$(NULL)
+gf-fd-application-gen.h:
+gf-fd-application-gen.c: org.freedesktop.Application.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop.Application \
+ --generate-c-code gf-fd-application-gen \
+ --c-namespace Gf \
+ --annotate "org.freedesktop.Application" \
+ "org.gtk.GDBus.C.Name" FdApplicationGen \
+ $(srcdir)/org.freedesktop.Application.xml
+
+gf-fd-dbus-gen.h:
+gf-fd-dbus-gen.c: org.freedesktop.DBus.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop.DBus \
+ --generate-c-code gf-fd-dbus-gen \
+ --c-namespace Gf \
+ --annotate "org.freedesktop.DBus" \
+ "org.gtk.GDBus.C.Name" FdDBusGen \
+ $(srcdir)/org.freedesktop.DBus.xml
+
+gf-fd-notifications-gen.h:
+gf-fd-notifications-gen.c: org.freedesktop.Notifications.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop.Notifications \
+ --generate-c-code gf-fd-notifications-gen \
+ --c-namespace Gf \
+ --annotate "org.freedesktop.Notifications" \
+ "org.gtk.GDBus.C.Name" FdNotificationsGen \
+ $(srcdir)/org.freedesktop.Notifications.xml
+
+gf-gtk-notifications-gen.h:
+gf-gtk-notifications-gen.c: org.gtk.Notifications.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.gtk.Notifications \
+ --generate-c-code gf-gtk-notifications-gen \
+ --c-namespace Gf \
+ --annotate "org.gtk.Notifications" \
+ "org.gtk.GDBus.C.Name" GtkNotificationsGen \
+ $(srcdir)/org.gtk.Notifications.xml
+
+BUILT_SOURCES = \
+ gf-fd-application-gen.c \
+ gf-fd-application-gen.h \
+ gf-fd-dbus-gen.c \
+ gf-fd-dbus-gen.h \
+ gf-fd-notifications-gen.c \
+ gf-fd-notifications-gen.h \
+ gf-gtk-notifications-gen.c \
+ gf-gtk-notifications-gen.h \
+ $(NULL)
+
+EXTRA_DIST = \
+ org.freedesktop.Application.xml \
+ org.freedesktop.DBus.xml \
+ org.freedesktop.Notifications.xml \
+ org.gtk.Notifications.xml \
+ $(NULL)
+
+CLEANFILES = \
+ $(BUILT_SOURCES) \
+ $(NULL)
+
-include $(top_srcdir)/git.mk
diff --git a/gnome-flashback/libnotifications/org.freedesktop.Application.xml
b/gnome-flashback/libnotifications/org.freedesktop.Application.xml
new file mode 100644
index 0000000..e903fdb
--- /dev/null
+++ b/gnome-flashback/libnotifications/org.freedesktop.Application.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.Application">
+
+ <method name="Activate">
+ <arg type="a{sv}" direction="in" />
+ </method>
+
+ <method name="ActivateAction">
+ <arg type="s" direction="in" />
+ <arg type="av" direction="in" />
+ <arg type="a{sv}" direction="in" />
+ </method>
+
+ </interface>
+</node>
diff --git a/gnome-flashback/libnotifications/org.freedesktop.DBus.xml
b/gnome-flashback/libnotifications/org.freedesktop.DBus.xml
new file mode 100644
index 0000000..b806297
--- /dev/null
+++ b/gnome-flashback/libnotifications/org.freedesktop.DBus.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.DBus">
+
+ <method name="GetConnectionUnixProcessID">
+ <arg type="s" direction="in" />
+ <arg type="u" direction="out" />
+ </method>
+
+ </interface>
+</node>
diff --git a/gnome-flashback/libnotifications/org.freedesktop.Notifications.xml
b/gnome-flashback/libnotifications/org.freedesktop.Notifications.xml
new file mode 100644
index 0000000..624731d
--- /dev/null
+++ b/gnome-flashback/libnotifications/org.freedesktop.Notifications.xml
@@ -0,0 +1,45 @@
+<?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.Notifications">
+
+ <method name="CloseNotification">
+ <arg type="u" name="id" direction="in" />
+ </method>
+
+ <method name="GetCapabilities">
+ <arg type="as" name="capabilities" direction="out" />
+ </method>
+
+ <method name="GetServerInformation">
+ <arg type="s" name="name" direction="out" />
+ <arg type="s" name="vendor" direction="out" />
+ <arg type="s" name="version" direction="out" />
+ <arg type="s" name="spec_version" direction="out" />
+ </method>
+
+ <method name="Notify">
+ <arg type="s" name="app_name" direction="in" />
+ <arg type="u" name="replaces_id" direction="in" />
+ <arg type="s" name="app_icon" direction="in" />
+ <arg type="s" name="summary" direction="in" />
+ <arg type="s" name="body" direction="in" />
+ <arg type="as" name="actions" direction="in" />
+ <arg type="a{sv}" name="hints" direction="in" />
+ <arg type="i" name="expire_timeout" direction="in" />
+ <arg type="u" name="id" direction="out" />
+ </method>
+
+ <signal name="ActionInvoked">
+ <arg type="u" name="id" />
+ <arg type="s" name="action_key" />
+ </signal>
+
+ <signal name="NotificationClosed">
+ <arg type="u" name="id" />
+ <arg type="u" name="reason" />
+ </signal>
+
+ </interface>
+</node>
diff --git a/gnome-flashback/libnotifications/org.gtk.Notifications.xml
b/gnome-flashback/libnotifications/org.gtk.Notifications.xml
new file mode 100644
index 0000000..98149ca
--- /dev/null
+++ b/gnome-flashback/libnotifications/org.gtk.Notifications.xml
@@ -0,0 +1,19 @@
+<?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.gtk.Notifications">
+
+ <method name="AddNotification">
+ <arg type="s" direction="in" />
+ <arg type="s" direction="in" />
+ <arg type="a{sv}" direction="in" />
+ </method>
+
+ <method name="RemoveNotification">
+ <arg type="s" direction="in" />
+ <arg type="s" direction="in" />
+ </method>
+
+ </interface>
+</node>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]