[vinagre] Add vinagre-tubes-manager and vinagre-tube-handler in the Makefile



commit 446e7b5eed82ea3e916907395bfca81c90441506
Author: Arnaud Maillet <arnaud maillet collabora co uk>
Date:   Tue Jun 2 14:52:09 2009 +0200

    Add vinagre-tubes-manager and vinagre-tube-handler in the Makefile

 src/Makefile.am      |   20 +++++++++++++++++
 src/tube-handler.xml |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index a0ec889..c35587f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -145,6 +145,26 @@ BUILT_SOURCES = \
 	vinagre-enums.h \
 	$(NULL)
 
+##############################
+# Telepathy stuff
+##############################
+
+if TELEPATHY
+
+INCLUDES += $(TELEPATHY_CFLAGS)
+vinagre_LDADD += $(TELEPATHY_LIBS)
+vinagre_SOURCES += \
+	vinagre-tubes-manager.c vinagre-tubes-manager.h		\
+	vinagre-tube-handler.c vinagre-tube-handler.h		\
+	$(NULL)
+
+dbus-interface-glue.h: tube-handler.xml
+	dbus-binding-tool --prefix=vinagre_tubes_manager --mode=glib-server tube-handler.xml > dbus-interface-glue.h
+
+BUILT_SOURCES += dbus-interface-glue.h
+
+endif
+
 DISTCLEANFILES =		\
 	$(BUILT_SOURCES)	\
 	$(server_in_files)	\
diff --git a/src/tube-handler.xml b/src/tube-handler.xml
new file mode 100644
index 0000000..30848d9
--- /dev/null
+++ b/src/tube-handler.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" ?>
+<node name="/Tube_Handler" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0";>
+  <tp:copyright>Copyright (C) 2008 Collabora Limited</tp:copyright>
+  <tp:license xmlns="http://www.w3.org/1999/xhtml";>
+    <p>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.</p>
+
+<p>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
+Library General Public License for more details.</p>
+
+<p>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.</p>
+  </tp:license>
+  <interface name="org.gnome.Empathy.TubeHandler">
+
+    <method name="HandleTube">
+      <arg direction="in" type="s" name="Bus_Name" tp:type="DBus_Bus_Name">
+        <tp:docstring>
+          The bus name of the connection and channel
+        </tp:docstring>
+      </arg>
+      <arg direction="in" type="o" name="Connection">
+        <tp:docstring>
+          The object-path of the connection that owns the channel
+        </tp:docstring>
+      </arg>
+      <arg direction="in" type="o" name="Channel">
+        <tp:docstring>
+          The object-path of the tubes channel
+        </tp:docstring>
+      </arg>
+      <arg direction="in" type="u" tp:type="Handle_Type" name="Handle_Type">
+        <tp:docstring>The type of the handle that the channel communicates
+          with, or 0 if there is no associated handle</tp:docstring>
+      </arg>
+      <arg direction="in" type="u" tp:type="Handle" name="Handle">
+        <tp:docstring>The handle that the channel communicates with,
+          or 0 if there is no associated handle</tp:docstring>
+      </arg>
+      <tp:docstring>
+        Called when a tube handler should handle a new tube within a tubes channel.
+      </tp:docstring>
+      <!-- FIXME: possible errors? -->
+    </method>
+    <tp:docstring xmlns="http://www.w3.org/1999/xhtml";>
+      <p>An interface exported by client applications which are able to
+        handle incoming tubes.</p>
+    </tp:docstring>
+  </interface>
+</node>
+<!-- vim:set sw=2 sts=2 et ft=xml: -->
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]