Mercurial > pidgin
annotate plugins/perl/common/SavedStatuses.xs @ 13219:d0f7f698b6de
[gaim-migrate @ 15583]
SF Patch #1428591 from Sadrul
"This is a new signal, emitted when request for a
file-transfer comes in. I have written a trivial plugin
(which I plan on adding under plugin_pack in a couple
of days) that uses this signal to auto-accept
file-transfers. I have tested the plugin to auto-accept
or auto-reject file-transfer requests."
I also noticed that the file transfer signals weren't using a subtype for
GaimXfer pointers, so I added one.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 11 Feb 2006 05:24:30 +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() |