Mercurial > pidgin
annotate plugins/perl/common/SavedStatuses.xs @ 13794:ecfd8fb02c19
[gaim-migrate @ 16206]
We don't really need to pop up an error if the sound file doesn't exist
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 30 May 2006 17:02:27 +0000 |
parents | 09886847a5f7 |
children |
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 | |
13501
09886847a5f7
[gaim-migrate @ 15877]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12790
diff
changeset
|
36 Gaim::SavedStatus |
09886847a5f7
[gaim-migrate @ 15877]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12790
diff
changeset
|
37 gaim_savedstatus_get_current() |
09886847a5f7
[gaim-migrate @ 15877]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12790
diff
changeset
|
38 |
11118 | 39 MODULE = Gaim::SavedStatus PACKAGE = Gaim::SavedStatuses PREFIX = gaim_savedstatuses_ |
40 PROTOTYPES: ENABLE | |
41 | |
42 void | |
43 gaim_savedstatuses_get_all() | |
44 PREINIT: | |
11130 | 45 const GList *l; |
11118 | 46 PPCODE: |
47 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
|
48 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::SavedStatus"))); |
11118 | 49 } |
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_get_handle() |
11118 | 53 |
12790
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
54 void |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
55 gaim_savedstatuses_init() |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
56 |
651972254c7a
[gaim-migrate @ 15137]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
57 void |
11118 | 58 gaim_savedstatuses_uninit() |