Mercurial > pidgin.yaz
annotate libgaim/plugins/perl/common/Notify.xs @ 15205:d83f71ca0cd7
[gaim-migrate @ 17994]
fix the perl bindings for the notify_userinfo changes.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 14 Dec 2006 05:02:08 +0000 |
parents | 60b1bc8dbf37 |
children |
rev | line source |
---|---|
14192 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Notify PACKAGE = Gaim::Notify PREFIX = gaim_notify_ | |
4 PROTOTYPES: ENABLE | |
5 | |
6 void | |
7 gaim_notify_close(type, ui_handle) | |
8 Gaim::NotifyType type | |
9 void * ui_handle | |
10 | |
11 void | |
12 gaim_notify_close_with_handle(handle) | |
13 void * handle | |
14 | |
15 void * | |
16 gaim_notify_email(handle, subject, from, to, url, cb, user_data) | |
17 void * handle | |
18 const char *subject | |
19 const char *from | |
20 const char *to | |
21 const char *url | |
22 Gaim::NotifyCloseCallback cb | |
23 gpointer user_data | |
24 | |
25 void * | |
26 gaim_notify_emails(handle, count, detailed, subjects, froms, tos, urls, cb, user_data) | |
27 void * handle | |
28 size_t count | |
29 gboolean detailed | |
30 const char **subjects | |
31 const char **froms | |
32 const char **tos | |
33 const char **urls | |
34 Gaim::NotifyCloseCallback cb | |
35 gpointer user_data | |
36 | |
37 void * | |
38 gaim_notify_formatted(handle, title, primary, secondary, text, cb, user_data) | |
39 void * handle | |
40 const char *title | |
41 const char *primary | |
42 const char *secondary | |
43 const char *text | |
44 Gaim::NotifyCloseCallback cb | |
45 gpointer user_data | |
46 | |
15205
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
47 void * |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
48 gaim_notify_userinfo(gc, who, user_info, cb, user_data) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
49 Gaim::Connection gc |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
50 const char *who |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
51 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
52 Gaim::NotifyCloseCallback cb |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
53 gpointer user_data |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
54 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
55 Gaim::NotifyUserInfo |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
56 gaim_notify_user_info_new() |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
57 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
58 void |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
59 gaim_notify_user_info_destroy(user_info) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
60 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
61 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
62 void |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
63 gaim_notify_user_info_get_entries(user_info) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
64 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
65 PREINIT: |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
66 const GList *l; |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
67 PPCODE: |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
68 l = gaim_notify_user_info_get_entries(user_info); |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
69 for (; l != NULL; l = l->next) { |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
70 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::NotifyUserInfoEntry"))); |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
71 } |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
72 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
73 gchar_own * |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
74 gaim_notify_user_info_get_text_with_newline(user_info, newline) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
75 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
76 const char *newline |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
77 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
78 void gaim_notify_user_info_add_pair(user_info, label, value) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
79 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
80 const char *label |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
81 const char *value |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
82 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
83 void gaim_notify_user_info_prepend_pair(user_info, label, value) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
84 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
85 const char *label |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
86 const char *value |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
87 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
88 void gaim_notify_user_info_add_section_break(user_info) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
89 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
90 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
91 void gaim_notify_user_info_add_section_header(user_info, label) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
92 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
93 const char *label |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
94 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
95 void gaim_notify_user_info_remove_last_item(user_info) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
96 Gaim::NotifyUserInfo user_info |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
97 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
98 gchar * |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
99 gaim_notify_user_info_entry_get_label(user_info_entry) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
100 Gaim::NotifyUserInfoEntry user_info_entry |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
101 |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
102 gchar * |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
103 gaim_notify_user_info_entry_get_value(user_info_entry) |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
104 Gaim::NotifyUserInfoEntry user_info_entry |
d83f71ca0cd7
[gaim-migrate @ 17994]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
105 |
14192 | 106 Gaim::NotifyUiOps |
107 gaim_notify_get_ui_ops() | |
108 | |
109 | |
110 void * | |
111 gaim_notify_message(handle, type, title, primary, secondary, cb, user_data) | |
112 void * handle | |
113 Gaim::NotifyMsgType type | |
114 const char *title | |
115 const char *primary | |
116 const char *secondary | |
117 Gaim::NotifyCloseCallback cb | |
118 gpointer user_data | |
119 | |
120 void * | |
121 gaim_notify_searchresults(gc, title, primary, secondary, results, cb, user_data) | |
122 Gaim::Connection gc | |
123 const char *title | |
124 const char *primary | |
125 const char *secondary | |
126 Gaim::NotifySearchResults results | |
127 Gaim::NotifyCloseCallback cb | |
128 gpointer user_data | |
129 | |
130 void | |
131 gaim_notify_set_ui_ops(ops) | |
132 Gaim::NotifyUiOps ops | |
133 | |
134 void * | |
135 gaim_notify_uri(handle, uri) | |
136 void * handle | |
137 const char *uri | |
138 |