Mercurial > pidgin
annotate plugins/perl/common/SavedStatuses.xs @ 12924:e841e23a334c
[gaim-migrate @ 15277]
patch #1408512 Psychic popups: disable when away
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Wed, 18 Jan 2006 03:04:25 +0000 |
parents | 651972254c7a |
children | 09886847a5f7 |
rev | line source |
---|---|
11118 | 1 #include "module.h" |
2 | |
11290 | 3 MODULE = Gaim::SavedStatus PACKAGE = Gaim::SavedStatus PREFIX = gaim_savedstatus_ |
4 PROTOTYPES: ENABLE | |
11118 | 5 |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
6 gboolean |
11118 | 7 gaim_savedstatus_delete(title) |
8 const char *title | |
9 | |
10 Gaim::SavedStatus | |
11 gaim_savedstatus_find(title) | |
12 const char *title | |
13 | |
14 const char * | |
15 gaim_savedstatus_get_message(saved_status) | |
16 Gaim::SavedStatus saved_status | |
17 | |
18 const char * | |
19 gaim_savedstatus_get_title(saved_status) | |
20 Gaim::SavedStatus saved_status | |
21 | |
22 Gaim::StatusPrimitive | |
23 gaim_savedstatus_get_type(saved_status) | |
24 Gaim::SavedStatus saved_status | |
25 | |
26 Gaim::SavedStatus | |
27 gaim_savedstatus_new(title, type) | |
28 const char *title | |
29 Gaim::StatusPrimitive type | |
30 | |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
31 void |
11118 | 32 gaim_savedstatus_set_message(status, message) |
33 Gaim::SavedStatus status | |
34 const char *message | |
35 | |
36 MODULE = Gaim::SavedStatus PACKAGE = Gaim::SavedStatuses PREFIX = gaim_savedstatuses_ | |
37 PROTOTYPES: ENABLE | |
38 | |
39 void | |
40 gaim_savedstatuses_get_all() | |
41 PREINIT: | |
11130 | 42 const GList *l; |
11118 | 43 PPCODE: |
44 for (l = gaim_savedstatuses_get_all(); l != NULL; l = l->next) { | |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
45 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::SavedStatus"))); |
11118 | 46 } |
47 | |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
48 void * |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
49 gaim_savedstatuses_get_handle() |
11118 | 50 |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
51 void |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
52 gaim_savedstatuses_init() |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
53 |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
54 void |
11118 | 55 gaim_savedstatuses_uninit() |