aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-06 18:41:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-02-12 15:55:12 +0800
commitf5c313c887e0fa9faca7a05165e7b6df25761917 (patch)
tree7cca8d6abe949793dee47d5e342ea26387936cde
parent941b6fa8304c1cc678b08520fa19284aa72d1345 (diff)
downloadgsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar.gz
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar.bz2
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar.lz
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar.xz
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.tar.zst
gsoc2013-empathy-f5c313c887e0fa9faca7a05165e7b6df25761917.zip
generate GDBus API for the chat manager
Plan is to get rid of our own code gen system in next. https://bugzilla.gnome.org/show_bug.cgi?id=723766
-rw-r--r--src/.gitignore2
-rw-r--r--src/Chat_Manager.xml36
-rw-r--r--src/Makefile.am10
3 files changed, 48 insertions, 0 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 52be330ef..2be662ac6 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -8,3 +8,5 @@ empathy-chat
empathy-chat-resources.c
empathy-chat-resources.h
src-marshal.*
+chat-manager-interface.c
+chat-manager-interface.h
diff --git a/src/Chat_Manager.xml b/src/Chat_Manager.xml
new file mode 100644
index 000000000..15ea95122
--- /dev/null
+++ b/src/Chat_Manager.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" ?>
+<node name="/Chat_Manager"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+ <tp:copyright>Copyright (C) 2011 Collabora Ltd.</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
+Lesser 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.ChatManager">
+
+ <method name="UndoClosedChat" tp:name-for-bindings="Undo_Closed_Chat">
+ <arg direction="in" type="x" name="User_Time">
+ <tp:docstring>
+ The user action time for the event.
+ </tp:docstring>
+ </arg>
+ <tp:docstring>
+ Ask the chat manager to undo closing a tab. If there is no tab
+ to be opened then return successfully.
+ </tp:docstring>
+ </method>
+
+ </interface>
+</node>
+<!-- vim:set sw=2 sts=2 et ft=xml: -->
diff --git a/src/Makefile.am b/src/Makefile.am
index e7644774e..6f96880a6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -203,8 +203,18 @@ dist_man_MANS = \
empathy.1 \
empathy-accounts.1
+chat-manager-interface.c: chat-manager-interface.h
+chat-manager-interface.h: Makefile.am Chat_Manager.xml
+ gdbus-codegen \
+ --interface-prefix org.gnome.Empathy. \
+ --c-namespace EmpathyGen \
+ --generate-c-code chat-manager-interface \
+ Chat_Manager.xml
+
BUILT_SOURCES = \
$(nodist_empathy_chat_SOURCES) \
+ chat-manager-interface.c \
+ chat-manager-interface.h \
$(NULL)
CLEANFILES = $(BUILT_SOURCES)