purple: work around broken dbus-server.h
[siplcs.git] / src / purple / purple-dbus.h
blob2c7b4e4b3d1ccb0415ccc8e5c62c1e06d3770d0c
1 /**
2 * @file purple-dbus.h
4 * pidgin-sipe
6 * Copyright (C) 2017 SIPE Project <http://sipe.sourceforge.net/>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Work around some versions of dbus-server.h that redefine DBUS_EXPORT
25 * without checking that it is already defined. Include dbus/dbus.h first
26 * to suppress the implicit inclusion through dbus-server.h. Then undefine
27 * the macro to avoid the potential build failure.
29 #include <dbus/dbus.h>
30 #ifdef DBUS_EXPORT
31 #undef DBUS_EXPORT
32 #endif
33 #include "dbus-server.h"
34 #include "account.h"
36 extern PurpleDBusBinding sipe_purple_dbus_bindings[];
38 /**
39 * SipeJoinConferenceUri - join conference using URI
41 * @param account (in) libpurple account
42 * @param uri (in) URI string
44 DBUS_EXPORT void sipe_join_conference_uri(PurpleAccount *account,
45 const gchar *uri);
48 Local Variables:
49 mode: c
50 c-file-style: "bsd"
51 indent-tabs-mode: t
52 tab-width: 8
53 End: