From 2e520db643e63c674ad955212f143ce1997189f2 Mon Sep 17 00:00:00 2001 From: Cosimo Alfarano Date: Fri, 29 Jan 2010 19:02:04 +0000 Subject: Added file for TP DBus extension support --- extensions/Makefile.am | 86 ++++++++++++++++++++++ extensions/Telepathy_Logger.xml | 73 +++++++++++++++++++ extensions/all.xml | 157 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 316 insertions(+) create mode 100644 extensions/Makefile.am create mode 100644 extensions/Telepathy_Logger.xml create mode 100644 extensions/all.xml (limited to 'extensions') diff --git a/extensions/Makefile.am b/extensions/Makefile.am new file mode 100644 index 0000000..61ba12d --- /dev/null +++ b/extensions/Makefile.am @@ -0,0 +1,86 @@ +tools_dir = $(top_srcdir)/tools + +EXTRA_DIST = \ + all.xml \ + Telepathy_Logger.xml + +noinst_LTLIBRARIES = libtelepathy-logger-extensions.la + +libtelepathy_logger_extensions_la_SOURCES = \ + extensions.c \ + extensions.h + +nodist_libtelepathy_logger_extensions_la_SOURCES = \ + _gen/signals-marshal.c \ + _gen/signals-marshal.h \ + _gen/signals-marshal.list \ + _gen/enums.h \ + _gen/gtypes.h \ + _gen/gtypes-body.h \ + _gen/interfaces.h \ + _gen/interfaces-body.h \ + _gen/svc.h \ + _gen/svc.c + +BUILT_SOURCES = \ + _gen/all.xml \ + $(nodist_libtelepathy_logger_extensions_la_SOURCES) \ + extensions.html + +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@ + +# Generated stuff + +DROP_NAMESPACE = sed -e 's@xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec.extensions-v0"@@g' +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 \ + $< > $@ + +_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 \ + --include='' \ + --include='"_gen/signals-marshal.h"' \ + --allow-unstable \ + --not-implemented-func='tp_dbus_g_method_return_not_implemented' \ + $< Gabble_Svc_ + +_gen/signals-marshal.list: _gen/all.xml \ + $(tools_dir)/glib-signals-marshal-gen.py \ + Makefile.am + $(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 $< > $@ + +_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 $< ; } > $@ + +_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 $< > $@ + +_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 $< + +_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 diff --git a/extensions/Telepathy_Logger.xml b/extensions/Telepathy_Logger.xml new file mode 100644 index 0000000..648f698 --- /dev/null +++ b/extensions/Telepathy_Logger.xml @@ -0,0 +1,73 @@ + + + Copyright © 2009 Collabora Ltd. + +

This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version.

+ +

This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details.

+ +

You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

+
+ + (as a draft) + + + + + The identifier of the contact who originated this message. + + + + + The body of the message sent to a 1-1 Chat or a Chat Room. + + + + + Unix timestamp for the log entry + + + +

It represents a single message, received or sent.

+

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

+ + + + + + + An array of handles representing contacts. + + + + + A dictionary mapping contact handles to information, whose keys are + the subset of the requested list of handles for which information was + cached. + + + + Request the last Lines entries of logs for the specified couple Account+Identifier. + + + + + An interface for requesting informatiosn about the Telepathy Logger entries. + + + + diff --git a/extensions/all.xml b/extensions/all.xml new file mode 100644 index 0000000..a750472 --- /dev/null +++ b/extensions/all.xml @@ -0,0 +1,157 @@ + + +TelepathyLogger-specific extensions to the Telepathy interfaces + +Copyright (C) 2009-2010 Collabora Limited + + +

This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version.

+ +

This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details.

+ +

You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + An audio stream + + + A video stream + + + + + + An IP address and port. + + Either a dotted-quad IPv4 address literal as for + Socket_Address_IPv4, or an RFC2373 IPv6 address + as for Socket_Address_IPv6. + + + + The TCP or UDP port number. + + + + + An IPv4 address and port. + + A dotted-quad IPv4 address literal: four ASCII decimal + numbers, each between 0 and 255 inclusive, e.g. + "192.168.0.1". + + + The TCP or UDP port number. + + + + + An IPv6 address and port. + + An IPv6 address literal as specified by RFC2373 + section 2.2, e.g. "2001:DB8::8:800:200C:4171". + + + The TCP or UDP port number. + + + + + + The stream is disconnected. + + + The stream is trying to connect. + + + The stream is connected. + + + + + An unsigned 32-bit integer representing a + handle + + + + + -- cgit v1.2.1