root/trunk/libnotify/libnotify/internal.h

Revision 2861 (checked in by chipx86, 3 years ago)

Add G_BEGIN_DECLS and G_END_DECLS to notify.h, so that libnotify can be used in C++ applications properly.

Line 
1 /**
2  * @file libnotify/internal.h Internal definitions
3  *
4  * @Copyright (C) 2006 Christian Hammond
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA  02111-1307, USA.
20  */
21 #ifndef _LIBNOTIFY_INTERNAL_H_
22 #define _LIBNOTIFY_INTERNAL_H_
23
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #ifndef DBUS_API_SUBJECT_TO_CHANGE
29 # define DBUS_API_SUBJECT_TO_CHANGE 1
30 #endif
31
32 #include <dbus/dbus.h>
33 #include <dbus/dbus-glib.h>
34
35 #define NOTIFY_DBUS_NAME           "org.freedesktop.Notifications"
36 #define NOTIFY_DBUS_CORE_INTERFACE "org.freedesktop.Notifications"
37 #define NOTIFY_DBUS_CORE_OBJECT    "/org/freedesktop/Notifications"
38
39 G_BEGIN_DECLS
40
41 DBusGConnection *_notify_get_dbus_g_conn(void);
42 DBusGProxy *_notify_get_g_proxy(void);
43
44 void _notify_cache_add_notification(NotifyNotification *n);
45 void _notify_cache_remove_notification(NotifyNotification *n);
46 gint _notify_notification_get_timeout(const NotifyNotification *n);
47 gboolean _notify_notification_has_nondefault_actions(
48     const NotifyNotification *n);
49
50 G_END_DECLS
51
52 #endif /* _LIBNOTIFY_INTERNAL_H_ */
Note: See TracBrowser for help on using the browser.