Skip to content
Permalink
Browse files

daemon: Use gdbus-codegen for the org.mate.atril.Daemon interface

  • Loading branch information...
Christian Persch authored and raveit65 committed Jun 11, 2012
1 parent e2420ea commit 3728fb7446f9ea7ced4e77ba22e94d3935f7bef8
Showing with 185 additions and 164 deletions.
  1. +22 −4 shell/Makefile.am
  2. +19 −0 shell/ev-daemon-gdbus.xml
  3. +144 −160 shell/ev-daemon.c
@@ -120,12 +120,21 @@ atril_LDADD= \
BUILT_SOURCES = ev-marshal.h ev-marshal.c

if ENABLE_DBUS
BUILT_SOURCES += ev-gdbus-generated.c ev-gdbus-generated.h
BUILT_SOURCES += \
ev-gdbus-generated.c \
ev-gdbus-generated.h \
ev-daemon-gdbus-generated.c \
ev-daemon-gdbus-generated.h
endif

if ENABLE_DBUS
atrild_SOURCES= \
ev-daemon.c
ev-daemon.c \
$(NULL)
nodist_atrild_SOURCES = \
ev-daemon-gdbus-generated.c \
ev-daemon-gdbus-generated.h
$(NULL)

atrild_CFLAGS= \
-DATRILDATADIR=\"$(pkgdatadir)\" \
@@ -144,7 +153,8 @@ endif

EXTRA_DIST = \
ev-marshal.list \
ev-gdbus.xml
ev-gdbus.xml \
ev-daemon-gdbus.xml

ev-marshal.h: $(srcdir)/ev-marshal.list
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --header > ev-marshal.h
@@ -161,6 +171,14 @@ ev-gdbus-generated.c ev-gdbus-generated.h: ev-gdbus.xml Makefile
--generate-c-code ev-gdbus-generated \
$<

DISTCLEANFILES =
ev-daemon-gdbus-generated.c ev-daemon-gdbus-generated.h: ev-daemon-gdbus.xml Makefile
$(AM_V_GEN) $(GDBUS_CODEGEN) \
--interface-prefix=org.mate.atril \
--c-namespace=Ev \
--c-generate-object-manager \
--generate-c-code ev-daemon-gdbus-generated \
$<

DISTCLEANFILES = $(BUILT_SOURCES)

-include $(top_srcdir)/git.mk
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Introspection 0.1//EN"
"http://www.freedesktop.org/software/dbus/introspection.dtd">
<node>
<interface name="org.mate.atril.Daemon">
<method name="RegisterDocument">
<arg type="s" name="uri" direction="in"/>
<arg type="s" name="owner" direction="out"/>
</method>
<method name="UnregisterDocument">
<arg type="s" name="uri" direction="in"/>
</method>
<method name="FindDocument">
<arg type="s" name="uri" direction="in"/>
<arg type="b" name="spawn" direction="in"/>
<arg type="s" name="owner" direction="out"/>
</method>
</interface>
</node>
Oops, something went wrong.

0 comments on commit 3728fb7

Please sign in to comment.
You can’t perform that action at this time.