summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-02-12 10:03:25 +0000
committerDavid Laban <david.laban@collabora.co.uk>2011-02-12 11:02:57 +0000
commit8dcddb61752cfa140df30c94b54bd02684419323 (patch)
tree5ba95bbfdafdfd8152d783c180bfd8c49499fd7e /extensions
parentada52bcb3064a5a7fa0e75038f4365b45376518c (diff)
Rename project to telepathy-rakia
For the curious, these are the commands you need: git clean -d git mv tpsip-extensions extensions git mv tpsip rakia sed -i \ -e 's/libtpsip-extensions.la/librakia-extensions.la/g' \ -e 's/libtpsip_extensions_la/librakia_extensions_la/g' \ -e 's/tpsip-extensions/extensions/g' \ -e 's/sofiasip/rakia/g' \ -e 's/tpsip/rakia/g' \ -e 's/Tpsip/Rakia/g' \ -e 's/SOFIASIP/RAKIA/g' \ */*.[ch] .gitignore configure.ac $(find -name 'Makefile.am' ; find -name '*.py' ; find -name '*.in') git mv ./docs/telepathy-sofiasip.8.in ./docs/telepathy-rakia.8.in git mv ./src/telepathy-sofiasip.c ./src/telepathy-rakia.c git mv ./data/org.freedesktop.Telepathy.ConnectionManager.sofiasip.service.in \ ./data/org.freedesktop.Telepathy.ConnectionManager.rakia.service.in git mv ./tests/twisted/tools/sofiasip.service.in \ ./tests/twisted/tools/rakia.service.in ./autogen.sh && make distcheck
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Makefile.am120
-rw-r--r--extensions/all.xml14
-rw-r--r--extensions/channel.xml7
-rw-r--r--extensions/extensions.c6
-rw-r--r--extensions/extensions.h17
5 files changed, 164 insertions, 0 deletions
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
new file mode 100644
index 0000000..b0ea184
--- /dev/null
+++ b/extensions/Makefile.am
@@ -0,0 +1,120 @@
+tools_dir = $(top_srcdir)/tools
+
+AM_CFLAGS = \
+ $(ERROR_CFLAGS) \
+ $(DBUS_CFLAGS) \
+ $(GLIB_CFLAGS) \
+ $(TELEPATHY_GLIB_CFLAGS)
+
+EXTRA_DIST = \
+ all.xml \
+ channel.xml
+
+noinst_LTLIBRARIES = librakia-extensions.la
+
+librakia_extensions_la_LIBADD = \
+ $(TELEPATHY_GLIB_LIBS)
+
+# The client-specific parts are built into a separate .o file, so the linker
+# can discard them when linking services. The service-specific parts are
+# in svc-*.c, so we don't need an extensions-svc.c.
+librakia_extensions_la_SOURCES = \
+ extensions.c \
+ extensions.h
+
+nodist_librakia_extensions_la_SOURCES = \
+ _gen/signals-marshal.c \
+ _gen/signals-marshal.h \
+ _gen/signals-marshal.list \
+ _gen/register-dbus-glib-marshallers-body.h \
+ _gen/enums.h \
+ _gen/gtypes.h \
+ _gen/gtypes-body.h \
+ _gen/interfaces.h \
+ _gen/interfaces-body.h \
+ _gen/svc-channel.h \
+ _gen/svc-channel.c
+
+BUILT_SOURCES = \
+ _gen/all.xml \
+ _gen/channel.xml \
+ $(nodist_librakia_extensions_la_SOURCES) \
+ extensions.html
+
+CLEANFILES = $(BUILT_SOURCES)
+
+XSLTPROCFLAGS = --nonet --novalid
+
+# Generated files which can be generated for all categories simultaneously
+
+_gen/all.xml: all.xml $(wildcard *.xml)
+ $(mkdir_p) _gen
+ $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
+ $< > $@
+
+extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl
+ $(XSLTPROC) $(XSLTPROCFLAGS) \
+ $(tools_dir)/doc-generator.xsl \
+ $< > $@
+
+_gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
+ $(top_srcdir)/tools/glib-gtypes-generator.py
+ $(PYTHON) $(top_srcdir)/tools/glib-gtypes-generator.py \
+ $< _gen/gtypes TPSIP
+
+_gen/signals-marshal.list: _gen/all.xml \
+ $(tools_dir)/glib-signals-marshal-gen.py
+ $(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
+
+_gen/signals-marshal.h: _gen/signals-marshal.list
+ $(GLIB_GENMARSHAL) --header --prefix=_rakia_ext_marshal $< > $@
+
+_gen/signals-marshal.c: _gen/signals-marshal.list
+ $(GLIB_GENMARSHAL) --body --prefix=_rakia_ext_marshal $< > $@
+
+_gen/register-dbus-glib-marshallers-body.h: _gen/all.xml \
+ $(tools_dir)/glib-client-marshaller-gen.py
+ $(PYTHON) $(tools_dir)/glib-client-marshaller-gen.py $< \
+ _rakia_ext > $@
+
+_gen/enums.h: _gen/all.xml $(tools_dir)/c-constants-generator.xsl
+ $(XSLTPROC) $(XSLTPROCFLAGS) \
+ --stringparam mixed-case-prefix Rakia \
+ $(tools_dir)/c-constants-generator.xsl \
+ $< > $@
+
+_gen/interfaces.h: _gen/all.xml \
+ $(tools_dir)/glib-interfaces-generator.xsl \
+ $(tools_dir)/c-interfaces-generator.xsl
+ $(XSLTPROC) $(XSLTPROCFLAGS) \
+ --stringparam mixed-case-prefix Rakia \
+ $(tools_dir)/glib-interfaces-generator.xsl \
+ $< > $@
+
+_gen/interfaces-body.h: _gen/all.xml \
+ $(tools_dir)/glib-interfaces-body-generator.xsl \
+ $(tools_dir)/c-interfaces-generator.xsl
+ $(XSLTPROC) $(XSLTPROCFLAGS) \
+ --stringparam mixed-case-prefix Rakia \
+ $(tools_dir)/glib-interfaces-body-generator.xsl \
+ $< > $@
+
+# Generated files which must be generated per "category". Each TpProxy
+# subclass you want to use with --subclass will need to have its own category,
+# although you can subdivide further if you want.
+
+_gen/channel.xml: channel.xml $(wildcard *.xml)
+ $(mkdir_p) _gen
+ $(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
+ $< > $@
+
+_gen/svc-channel.c _gen/svc-channel.h: _gen/channel.xml \
+ $(tools_dir)/glib-ginterface-gen.py
+ $(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
+ --filename=_gen/svc-channel \
+ --signal-marshal-prefix=_rakia_ext \
+ --include='<telepathy-glib/dbus.h>' \
+ --include='"_gen/signals-marshal.h"' \
+ --not-implemented-func='tp_dbus_g_method_return_not_implemented' \
+ --allow-unstable \
+ $< Rakia_Svc_
diff --git a/extensions/all.xml b/extensions/all.xml
new file mode 100644
index 0000000..0cd4295
--- /dev/null
+++ b/extensions/all.xml
@@ -0,0 +1,14 @@
+<tp:spec
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+
+<tp:title>Extensions for telepathy-sofiasip</tp:title>
+
+<xi:include href="channel.xml"/>
+
+<tp:generic-types>
+ <tp:external-type name="Contact_Handle" type="u"
+ from="Telepathy specification"/>
+</tp:generic-types>
+
+</tp:spec>
diff --git a/extensions/channel.xml b/extensions/channel.xml
new file mode 100644
index 0000000..2b8dbac
--- /dev/null
+++ b/extensions/channel.xml
@@ -0,0 +1,7 @@
+<tp:spec
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+
+<tp:title>Channel extensions for telepathy-sofiasip</tp:title>
+
+</tp:spec>
diff --git a/extensions/extensions.c b/extensions/extensions.c
new file mode 100644
index 0000000..eeda462
--- /dev/null
+++ b/extensions/extensions.c
@@ -0,0 +1,6 @@
+#include "extensions.h"
+
+/* include auto-generated stubs for things common to service and client */
+#include "_gen/gtypes-body.h"
+#include "_gen/interfaces-body.h"
+#include "_gen/signals-marshal.h"
diff --git a/extensions/extensions.h b/extensions/extensions.h
new file mode 100644
index 0000000..0318277
--- /dev/null
+++ b/extensions/extensions.h
@@ -0,0 +1,17 @@
+#ifndef __SIP_EXTENSIONS_H__
+#define __SIP_EXTENSIONS_H__
+
+#include <glib-object.h>
+#include <telepathy-glib/channel.h>
+
+#include <extensions/_gen/enums.h>
+#include <extensions/_gen/svc-channel.h>
+
+G_BEGIN_DECLS
+
+#include <extensions/_gen/gtypes.h>
+#include <extensions/_gen/interfaces.h>
+
+G_END_DECLS
+
+#endif