Fix compilation error using python2.7
[python-purple] / notify_cbs.pxd
1 #
2 #  Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
3 #
4 #  This file is part of python-purple.
5 #
6 #  python-purple is free software: you can redistribute it and/or modify
7 #  it under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation, either version 3 of the License, or
9 #  (at your option) any later version.
10 #
11 #  python-purple 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
14 #  GNU General Public License for more details.
15 #
16 #  You should have received a copy of the GNU General Public License
17 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 cdef extern from *:
21     ctypedef char const_char "const char"
22     ctypedef int size_t
23
24 notify_cbs = {}
25
26 cdef void *notify_message(notify.PurpleNotifyMsgType type, \
27         const_char *title, const_char *primary, const_char *secondary):
28     """
29     TODO
30     """
31     debug.purple_debug_info("notify", "%s", "notify-message\n")
32     if "notify-message" in notify_cbs:
33         (<object> notify_cbs["notify-message"])("notify-message: TODO")
34
35 cdef void *notify_email(connection.PurpleConnection *gc, \
36         const_char *subject, const_char *_from, const_char *to, \
37         const_char *url):
38     """
39     TODO
40     """
41     debug.purple_debug_info("notify", "%s", "notify-email\n")
42     if "notify-email" in notify_cbs:
43         (<object> notify_cbs["notify-email"])("notify-email: TODO")
44
45 cdef void *notify_emails(connection.PurpleConnection *gc, size_t count, \
46         glib.gboolean detailed, const_char **subjects, \
47         const_char **froms, const_char **tos, const_char **urls):
48     """
49     TODO
50     """
51     debug.purple_debug_info("notify", "%s", "notify-emails\n")
52     if "notify-emails" in notify_cbs:
53         (<object> notify_cbs["notify-emails"])("notify-emails: TODO")
54
55 cdef void *notify_formatted(const_char *title, const_char *primary, \
56         const_char *secondary, const_char *text):
57     """
58     TODO
59     """
60     debug.purple_debug_info("notify", "%s", "notify-formatted\n")
61     if "notify-formatted" in notify_cbs:
62         (<object> notify_cbs["notify-formatted"])("notify-formatted: TODO")
63
64 cdef void *notify_searchresults(connection.PurpleConnection *gc, \
65         const_char *title, const_char *primary, const_char *secondary, \
66         notify.PurpleNotifySearchResults *results, glib.gpointer user_data):
67     """
68     TODO
69     """
70     debug.purple_debug_info("notify", "%s", "notify-searchresults\n")
71     if "notify-searchresults" in notify_cbs:
72         (<object> notify_cbs["notify-searchresults"]) \
73             ("notify-searchresults: TODO")
74
75 cdef void notify_searchresults_new_rows(connection.PurpleConnection *gc, \
76         notify.PurpleNotifySearchResults *results, void *data):
77     """
78     TODO
79     """
80     debug.purple_debug_info("notify", "%s", "notify-searchresults-new-rows\n")
81     if "notify-searchresults-new-rows" in notify_cbs:
82         (<object> notify_cbs["notify-searchresults-new-rows"]) \
83             ("notify-searchresults-new-rows: TODO")
84
85 cdef void *notify_userinfo(connection.PurpleConnection *gc, const_char *who, \
86         notify.PurpleNotifyUserInfo *user_info):
87     """
88     TODO
89     """
90     debug.purple_debug_info("notify", "%s", "notify-userinfo\n")
91     if "notify-userinfo" in notify_cbs:
92         (<object> notify_cbs["notify-userinfo"])("notify-userinfo: TODO")
93
94 cdef void *notify_uri(const_char *uri):
95     """
96     TODO
97     """
98     debug.purple_debug_info("notify", "%s", "notify-uri\n")
99     if "notify-uri" in notify_cbs:
100         (<object> notify_cbs["notify-uri"])("notify-uri: TODO")
101
102 cdef void close_notify(notify.PurpleNotifyType type, void *ui_handle):
103     """
104     TODO
105     """
106     debug.purple_debug_info("notify", "%s", "close-notify\n")
107     if "close-notify" in notify_cbs:
108         (<object> notify_cbs["close-notify"])("close-notify: TODO")