From f5c313c887e0fa9faca7a05165e7b6df25761917 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 6 Feb 2014 11:41:52 +0100 Subject: [PATCH] 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 --- src/.gitignore | 2 ++ src/Chat_Manager.xml | 36 ++++++++++++++++++++++++++++++++++++ src/Makefile.am | 10 ++++++++++ 3 files changed, 48 insertions(+) create mode 100644 src/Chat_Manager.xml diff --git a/src/.gitignore b/src/.gitignore index 52be330e..2be662ac 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 00000000..15ea9512 --- /dev/null +++ b/src/Chat_Manager.xml @@ -0,0 +1,36 @@ + + + Copyright (C) 2011 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.

+
+ + + + + + The user action time for the event. + + + + Ask the chat manager to undo closing a tab. If there is no tab + to be opened then return successfully. + + + + +
+ diff --git a/src/Makefile.am b/src/Makefile.am index e7644774..6f96880a 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) -- 2.39.2