[go: up one dir, main page]

Menu

[e2b83c]: / src / mod_notify.h  Maximize  Restore  History

Download this file

59 lines (42 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* mod_notify.h
* Artha - Free cross-platform open thesaurus
* Copyright (C) 2009, 2010 Sundaram Ramaswamy, legends2k@yahoo.com
*
* Artha is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Artha 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Artha; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Dynamic linking of libnotify for passive desktop notification using
* GModule. Prototypes must match with notify.h & notification.h
*/
#ifndef __MOD_NOTIFY_H__
#define __MOD_NOTIFY_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
typedef struct _NotifyNotification NotifyNotification;
gboolean (*notify_init) (const char *app_name);
void (*notify_uninit) (void);
NotifyNotification* (*notify_notification_new) (
const char *summary, const char *body,
const char *icon);
gboolean (*notify_notification_update) (NotifyNotification *notification,
const char *summary,
const char *body,
const char *icon);
gboolean (*notify_notification_show) (NotifyNotification *notification,
GError **error);
gboolean (*notify_notification_close) (NotifyNotification *notification,
GError **error);
G_END_DECLS
#endif /* __MOD_NOTIFY_H__ */