summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-11 14:55:03 +1100
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-11 15:41:39 +1100
commitcc900e536d1fc4b1d9f8f98c3297e7007650b0b9 (patch)
tree40a02e78fd576f5007fdea6ba289c8f721f438e8 /extensions
parentce83fc29a8a592f732e58559b1ac85f5929bfd7a (diff)
downloadtelepathy-logger-cc900e536d1fc4b1d9f8f98c3297e7007650b0b9.tar.gz
Get org.freedesktop.Telepathy.Logger extension building
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Logger.xml (renamed from extensions/Telepathy_Logger.xml)39
-rw-r--r--extensions/Makefile.am42
-rw-r--r--extensions/all.xml129
-rw-r--r--extensions/extensions.c5
-rw-r--r--extensions/extensions.h15
5 files changed, 64 insertions, 166 deletions
diff --git a/extensions/Telepathy_Logger.xml b/extensions/Logger.xml
index 648f698..b63198b 100644
--- a/extensions/Telepathy_Logger.xml
+++ b/extensions/Logger.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
-<node name="/Telepathy_Logger"
+<node name="/Logger"
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<tp:copyright>Copyright © 2009 Collabora Ltd.</tp:copyright>
<tp:license xmlns="http://www.w3.org/1999/xhtml">
@@ -17,11 +17,17 @@ Lesser General Public License for more details.</p>
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
</tp:license>
- <interface name="org.freedesktop.Telepathy.TelepathyLoggerService.DRAFT"
+ <interface name="org.freedesktop.Telepathy.Logger.DRAFT"
tp:causes-havoc="experimental">
<tp:added version="0.1">(as a draft)</tp:added>
- <tp:struct name="Chat_Message_Field" array-name="Chat_Message_Field_List">
+ <tp:docstring>
+ <!-- FIXME -->
+ An interface for requesting information from the Telepathy Logger
+ service.
+ </tp:docstring>
+
+ <tp:struct name="Chat_Message" array-name="Chat_Message_List">
<tp:member type="s" name="Sender">
<tp:docstring>
The identifier of the contact who originated this message.
@@ -41,33 +47,32 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
<p>It represents a single message, received or sent.</p>
<p>The receiver is implicit in the request: if the sender is the user,
the receiver is the identifier in chat_id paramenter, if the sender is
- not the user, the user is consequently the receiver of the message<p>
+ not the user, the user is consequently the receiver of the message</p>
</tp:docstring>
</tp:struct>
- <method name="LastChats"
- tp:name-for-bindings="LastChats">
- <arg direction="in" name="Account" type="o" tp:type="Contact_Handle[]">
+ <method name="GetRecentMessages"
+ tp:name-for-bindings="Get_Recent_Messages">
+ <arg direction="in" name="Account" type="o" tp:type="Account">
<tp:docstring>
- An array of handles representing contacts.
+ <!-- FIXME -->
</tp:docstring>
</arg>
- <arg direction="in" name="Identifier" type="s"
- tp:type="Contact_Info_Map">
+ <arg direction="in" name="Identifier" type="s">
<tp:docstring>
- A dictionary mapping contact handles to information, whose keys are
- the subset of the requested list of handles for which information was
- cached.
+ <!-- FIXME -->
</tp:docstring>
</arg>
+ <arg direction="in" name="Is_Chatroom" type="b" />
+ <arg direction="in" name="Lines" type="u" />
+ <arg direction="out" name="Messages" type="a(ssu)"
+ tp:type="Chat_Message[]" />
<tp:docstring>
- Request the last Lines entries of logs for the specified couple Account+Identifier.
+ Request the last Lines entries of logs for the specified couple
+ Account+Identifier.
</tp:docstring>
</method>
- <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
- An interface for requesting informatiosn about the Telepathy Logger entries.
- </tp:docstring>
</interface>
</node>
<!-- vim:set sw=2 sts=2 et ft=xml: -->
diff --git a/extensions/Makefile.am b/extensions/Makefile.am
index 61ba12d..bac6ce9 100644
--- a/extensions/Makefile.am
+++ b/extensions/Makefile.am
@@ -2,15 +2,16 @@ tools_dir = $(top_srcdir)/tools
EXTRA_DIST = \
all.xml \
- Telepathy_Logger.xml
+ Logger.xml \
+ $(NULL)
-noinst_LTLIBRARIES = libtelepathy-logger-extensions.la
+noinst_LTLIBRARIES = libtpl-extensions.la
-libtelepathy_logger_extensions_la_SOURCES = \
+libtpl_extensions_la_SOURCES = \
extensions.c \
extensions.h
-nodist_libtelepathy_logger_extensions_la_SOURCES = \
+nodist_libtpl_extensions_la_SOURCES = \
_gen/signals-marshal.c \
_gen/signals-marshal.h \
_gen/signals-marshal.list \
@@ -24,13 +25,12 @@ nodist_libtelepathy_logger_extensions_la_SOURCES = \
BUILT_SOURCES = \
_gen/all.xml \
- $(nodist_libtelepathy_logger_extensions_la_SOURCES) \
- extensions.html
+ $(nodist_libtpl_extensions_la_SOURCES)
CLEANFILES = $(BUILT_SOURCES)
-AM_CFLAGS = $(ERROR_CFLAGS) @DBUS_CFLAGS@ @GLIB_CFLAGS@ @TP_GLIB_CFLAGS@ @HANDLE_LEAK_DEBUG_CFLAGS@
-AM_LDFLAGS = @DBUS_LIBS@ @GLIB_LIBS@ @TP_GLIB_LIBS@
+AM_CFLAGS = $(ERROR_CFLAGS) @LIBTPL_CFLAGS@ @HANDLE_LEAK_DEBUG_CFLAGS@
+AM_LDFLAGS = @LIBTPL_LIBS@
# Generated stuff
@@ -39,24 +39,22 @@ XSLTPROCFLAGS = --nonet --novalid
_gen/all.xml: all.xml $(wildcard *.xml) Makefile.am
@$(mkdir_p) _gen
- $(AM_V_GEN)$(PYTHON) $(tools_dir)/xincludator.py \
- $< > $@.tmp && mv $@.tmp $@
-
-extensions.html: _gen/all.xml $(tools_dir)/doc-generator.xsl Makefile.am
- $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) \
- --param "allow-undefined-interfaces" "true()" \
- $(tools_dir)/doc-generator.xsl \
+ $(AM_V_GEN)$(XSLTPROC) $(XSLTPROCFLAGS) --xinclude $(tools_dir)/identity.xsl \
$< > $@
+doc/index.html: _gen/all.xml $(tools_dir)/specparser.py $(tools_dir)/doc-generator.py Makefile.am
+ $(AM_V_GEN)$(PYTHON) $(tools_dir)/doc-generator.py all.xml doc/ \
+ telepathy-spec org.freedesktop.Telepathy
+
_gen/svc.c _gen/svc.h: _gen/all.xml $(tools_dir)/glib-ginterface-gen.py \
Makefile.am
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-ginterface-gen.py \
- --filename=_gen/svc --signal-marshal-prefix=_gabble_ext \
+ --filename=_gen/svc --signal-marshal-prefix=_tpl_ext \
--include='<telepathy-glib/dbus.h>' \
--include='"_gen/signals-marshal.h"' \
--allow-unstable \
--not-implemented-func='tp_dbus_g_method_return_not_implemented' \
- $< Gabble_Svc_
+ $< Tpl_Svc_
_gen/signals-marshal.list: _gen/all.xml \
$(tools_dir)/glib-signals-marshal-gen.py \
@@ -64,23 +62,23 @@ _gen/signals-marshal.list: _gen/all.xml \
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-signals-marshal-gen.py $< > $@
_gen/signals-marshal.h: _gen/signals-marshal.list Makefile.am
- $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_gabble_ext_marshal $< > $@
+ $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=_tpl_ext_marshal $< > $@
_gen/signals-marshal.c: _gen/signals-marshal.list Makefile.am
$(AM_V_GEN){ echo '#include "_gen/signals-marshal.h"' && \
- $(GLIB_GENMARSHAL) --body --prefix=_gabble_ext_marshal $< ; } > $@
+ $(GLIB_GENMARSHAL) --body --prefix=_tpl_ext_marshal $< ; } > $@
_gen/enums.h: _gen/all.xml $(tools_dir)/c-constants-gen.py \
Makefile.am
- $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py Gabble $< > $@
+ $(AM_V_GEN)$(PYTHON) $(tools_dir)/c-constants-gen.py Tpl $< > $@
_gen/interfaces.h _gen/interfaces-body.h: _gen/all.xml \
$(tools_dir)/glib-interfaces-gen.py \
Makefile.am
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-interfaces-gen.py \
- Gabble _gen/interfaces-body.h _gen/interfaces.h $<
+ Tpl _gen/interfaces-body.h _gen/interfaces.h $<
_gen/gtypes.h _gen/gtypes-body.h: _gen/all.xml \
$(tools_dir)/glib-gtypes-generator.py Makefile.am
$(AM_V_GEN)$(PYTHON) $(tools_dir)/glib-gtypes-generator.py \
- $< _gen/gtypes Gabble
+ $< _gen/gtypes Tpl
diff --git a/extensions/all.xml b/extensions/all.xml
index a750472..6c7af8e 100644
--- a/extensions/all.xml
+++ b/extensions/all.xml
@@ -23,135 +23,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</p>
</tp:license>
<tp:generic-types>
- <tp:external-type name="Room_Handle" type="u"
+ <tp:external-type name="Account" type="o"
from="Telepathy specification"/>
- <tp:external-type name="Handle_Type" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="Contact_Handle" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Unique_Name" type="s"
- from="Telepathy specification"/>
-</tp:generic-types>
-
-<xi:include href="Telepathy_Logger.xml"/>
-
-<tp:generic-types>
- <tp:external-type name="Contact_Handle" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Interface" type="s"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Qualified_Member" type="s"
- from="Telepathy specification"/>
- <tp:external-type name="Qualified_Property_Value_Map" type="a{sv}"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Error_Name" type="s"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Well_Known_Name" type="s"
- from="Telepathy specification"/>
- <tp:external-type name="Handler_Capability_Token" type="s"
- from="Telepathy specification"/>
-
- <!-- for localisation -->
- <tp:external-type name="Rich_Presence_Access_Control_Type" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="Rich_Presence_Access_Control" type="(uv)"
- from="Telepathy specification"/>
- <tp:external-type name="Unix_Timestamp64" type="t"
- from="Telepathy specification"/>
- <tp:external-type name="Unix_Timestamp" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="String_String_Map" type="a{ss}"
- from="Telepathy specification"/>
-
- <tp:external-type name="String_Variant_Map" type="a{sv}"
- from="Telepathy specification"/>
-
- <!-- use types from Connection_Interface_Requests -->
- <tp:external-type name="Channel_Class" type="a{sv}"
- from="Telepathy specification"/>
-
- <!-- use types from Channel_Type_Tubes -->
- <tp:external-type name="Socket_Address_Type" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="Socket_Access_Control" type="u"
- from="Telepathy specification"/>
- <tp:external-type name="Supported_Socket_Map" type="a{uau}"
- from="Telepathy specification"/>
- <tp:external-type name="DBus_Tube_Member" type="(us)"
- from="Telepathy specification"/>
-
- <!-- use types from Connection_Interface_Contact_Capabilities -->
- <tp:external-type name="Requestable_Channel_Class" type="(a{sv}as)"
- from="Telepathy specification"/>
-
- <tp:external-type name="Connection_Status" type="u"
- from="Telepathy specification"/>
-
- <!-- use types from Channel_Type_Streamed_Media.xml -->
- <tp:enum name="Media_Stream_Type" type="u"
- array-name="Media_Stream_Type_List">
- <tp:enumvalue suffix="Audio" value="0">
- <tp:docstring>An audio stream</tp:docstring>
- </tp:enumvalue>
- <tp:enumvalue suffix="Video" value="1">
- <tp:docstring>A video stream</tp:docstring>
- </tp:enumvalue>
- </tp:enum>
-
- <!-- use types from generic-types.xml -->
- <tp:struct name="Socket_Address_IP" array-name="Socket_Address_IP_List">
- <tp:docstring>An IP address and port.</tp:docstring>
- <tp:member type="s" name="Address">
- <tp:docstring>Either a dotted-quad IPv4 address literal as for
- <tp:type>Socket_Address_IPv4</tp:type>, or an RFC2373 IPv6 address
- as for <tp:type>Socket_Address_IPv6</tp:type>.
- </tp:docstring>
- </tp:member>
- <tp:member type="q" name="Port">
- <tp:docstring>The TCP or UDP port number.</tp:docstring>
- </tp:member>
- </tp:struct>
-
- <tp:struct name="Socket_Address_IPv4">
- <tp:docstring>An IPv4 address and port.</tp:docstring>
- <tp:member type="s" name="Address">
- <tp:docstring>A dotted-quad IPv4 address literal: four ASCII decimal
- numbers, each between 0 and 255 inclusive, e.g.
- "192.168.0.1".</tp:docstring>
- </tp:member>
- <tp:member type="q" name="Port">
- <tp:docstring>The TCP or UDP port number.</tp:docstring>
- </tp:member>
- </tp:struct>
-
- <tp:struct name="Socket_Address_IPv6">
- <tp:docstring>An IPv6 address and port.</tp:docstring>
- <tp:member type="s" name="Address">
- <tp:docstring>An IPv6 address literal as specified by RFC2373
- section 2.2, e.g. "2001:DB8::8:800:200C:4171".</tp:docstring>
- </tp:member>
- <tp:member type="q" name="Port">
- <tp:docstring>The TCP or UDP port number.</tp:docstring>
- </tp:member>
- </tp:struct>
-
- <tp:enum name="Media_Stream_State" type="u">
- <tp:enumvalue suffix="Disconnected" value="0">
- <tp:docstring>The stream is disconnected.</tp:docstring>
- </tp:enumvalue>
- <tp:enumvalue suffix="Connecting" value="1">
- <tp:docstring>The stream is trying to connect.</tp:docstring>
- </tp:enumvalue>
- <tp:enumvalue suffix="Connected" value="2">
- <tp:docstring>The stream is connected.</tp:docstring>
- </tp:enumvalue>
- </tp:enum>
-
- <tp:simple-type name="Handle" type="u" array-name="Handle_List">
- <tp:docstring>An unsigned 32-bit integer representing a
- handle</tp:docstring>
- </tp:simple-type>
</tp:generic-types>
+<xi:include href="Logger.xml"/>
</tp:spec>
diff --git a/extensions/extensions.c b/extensions/extensions.c
new file mode 100644
index 0000000..c81d126
--- /dev/null
+++ b/extensions/extensions.c
@@ -0,0 +1,5 @@
+#include "extensions.h"
+
+/* auto-generated stubs */
+#include "_gen/gtypes-body.h"
+#include "_gen/interfaces-body.h"
diff --git a/extensions/extensions.h b/extensions/extensions.h
new file mode 100644
index 0000000..bf8f36d
--- /dev/null
+++ b/extensions/extensions.h
@@ -0,0 +1,15 @@
+#ifndef _TPL_EXTENSIONS_H
+#define _TPL_EXTENSIONS_H
+
+#include "extensions/_gen/enums.h"
+#include "extensions/_gen/svc.h"
+
+G_BEGIN_DECLS
+
+#include "extensions/_gen/gtypes.h"
+#include "extensions/_gen/interfaces.h"
+
+G_END_DECLS
+
+#endif /* _GABBLE_EXTENSIONS_H */
+