aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-30 13:44:15 -0500
committerTed Gould <ted@gould.cx>2010-08-30 13:44:15 -0500
commit60d66c4e975f0d8939fc5bf70954002eae16b1d5 (patch)
treee84d8375502d4da75d223ddd2cb2e3a862c65dce /src
parent6ca39e515389c77e563cdd0e480a69b2b3c0efda (diff)
downloadayatana-indicator-datetime-60d66c4e975f0d8939fc5bf70954002eae16b1d5.tar.gz
ayatana-indicator-datetime-60d66c4e975f0d8939fc5bf70954002eae16b1d5.tar.bz2
ayatana-indicator-datetime-60d66c4e975f0d8939fc5bf70954002eae16b1d5.zip
Adding in a dbus interface file.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am26
-rw-r--r--src/datetime-service.xml11
2 files changed, 36 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 984ad3d..8bfac3d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,6 +2,7 @@
libexec_PROGRAMS = indicator-datetime-service
indicator_datetime_service_SOURCES = \
+ datetime-server.h \
datetime-service.c \
dbus-shared.h
indicator_datetime_service_CFLAGS = \
@@ -15,6 +16,7 @@ indicator_datetime_service_LDADD = \
datetimelibdir = $(INDICATORDIR)
datetimelib_LTLIBRARIES = libdatetime.la
libdatetime_la_SOURCES = \
+ datetime-client.h \
dbus-shared.h \
indicator-datetime.c
libdatetime_la_CFLAGS = \
@@ -26,4 +28,26 @@ libdatetime_la_LDFLAGS = \
-module \
-avoid-version
-EXTRA_DIST = $(libdatetime_la_SOURCES)
+datetime-service-client.h: $(srcdir)/datetime-service.xml
+ dbus-binding-tool \
+ --prefix=_datetime_service_client \
+ --mode=glib-client \
+ --output=datetime-service-client.h \
+ $(srcdir)/datetime-service.xml
+
+datetime-service-server.h: $(srcdir)/datetime-service.xml
+ dbus-binding-tool \
+ --prefix=_datetime_service_server \
+ --mode=glib-server \
+ --output=datetime-service-server.h \
+ $(srcdir)/datetime-service.xml
+
+BUILT_SOURCES = \
+ datetime-service-client.h \
+ datetime-service-server.h
+
+CLEANFILES = \
+ $(BUILT_SOURCES)
+
+EXTRA_DIST = \
+ datetime-service.xml
diff --git a/src/datetime-service.xml b/src/datetime-service.xml
new file mode 100644
index 0000000..1207ebb
--- /dev/null
+++ b/src/datetime-service.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<node name="/">
+ <interface name="org.ayatana.indicator.datetime.service">
+
+<!-- Methods -->
+
+<!-- Signals -->
+ <signal name="UpdateTime" />
+
+ </interface>
+</node>