aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore2
-rw-r--r--src/Makefile.am29
-rw-r--r--src/messages-service.xml25
3 files changed, 55 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore
index 42bdaa3..1d6767c 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -19,3 +19,5 @@ src/libmessaging_la-app-menu-item.lo
data/indicator-messages.service
indicator-messages-service
indicator-messages-service-activate
+src/messages-service-client.h
+src/messages-service-server.h
diff --git a/src/Makefile.am b/src/Makefile.am
index 0678537..243247e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,8 @@ bin_PROGRAMS = indicator-messages-service
messaginglibdir = $(INDICATORDIR)
messaginglib_LTLIBRARIES = libmessaging.la
libmessaging_la_SOURCES = \
- indicator-messages.c\
+ indicator-messages.c \
+ messages-service-client.h \
dbus-data.h
libmessaging_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Wl,-Bsymbolic-functions -Wl,-z,defs -Wl,--as-needed -Werror
libmessaging_la_LIBADD = $(APPLET_LIBS)
@@ -20,6 +21,7 @@ libmessaging_la_LDFLAGS = -module -avoid-version
indicator_messages_service_SOURCES = \
messages-service.c \
+ messages-service-server.h \
im-menu-item.c \
im-menu-item.h \
app-menu-item.c \
@@ -30,3 +32,28 @@ indicator_messages_service_SOURCES = \
dbus-data.h
indicator_messages_service_CFLAGS = $(APPLET_CFLAGS) -Wall -Wl,-Bsymbolic-functions -Wl,-z,defs -Wl,--as-needed -Werror
indicator_messages_service_LDADD = $(APPLET_LIBS)
+
+messages-service-client.h: $(srcdir)/messages-service.xml
+ dbus-binding-tool \
+ --prefix=_messages_service_client \
+ --mode=glib-client \
+ --output=messages-service-client.h \
+ $(srcdir)/messages-service.xml
+
+messages-service-server.h: $(srcdir)/messages-service.xml
+ dbus-binding-tool \
+ --prefix=_messages_service_server \
+ --mode=glib-server \
+ --output=messages-service-server.h \
+ $(srcdir)/messages-service.xml
+
+BUILT_SOURCES = \
+ messages-service-client.h \
+ messages-service-server.h
+
+CLEANFILES = \
+ $(BUILT_SOURCES)
+
+EXTRA_DIST = \
+ messages-service.xml
+
diff --git a/src/messages-service.xml b/src/messages-service.xml
new file mode 100644
index 0000000..f991179
--- /dev/null
+++ b/src/messages-service.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<node name="/">
+ <interface name="org.ayatana.indicator.messages.service">
+
+<!-- Methods -->
+ <method name="Watch">
+ <annotation name="org.freedesktop.DBus.GLib.Async" value="true" />
+ </method>
+ <method name="AttentionRequested">
+ <arg type="b" name="dot" direction="out" />
+ </method>
+ <method name="IconShown">
+ <arg type="b" name="hidden" direction="out" />
+ </method>
+
+<!-- Signals -->
+ <signal name="AttentionChanged">
+ <arg type="b" name="dot" direction="out" />
+ </signal>
+ <signal name="IconChanged">
+ <arg type="b" name="hidden" direction="out" />
+ </signal>
+
+ </interface>
+</node>