Mercurial > pidgin
annotate plugins/perl/common/Network.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 | 3097275dbbdd |
children |
rev | line source |
---|---|
11118 | 1 #include "module.h" |
2 | |
3 MODULE = Gaim::Network PACKAGE = Gaim::Network PREFIX = gaim_network_ | |
4 PROTOTYPES: ENABLE | |
5 | |
6 const char * | |
7 gaim_network_get_local_system_ip(fd) | |
8 int fd | |
9 | |
10 const char * | |
11 gaim_network_get_my_ip(fd) | |
12 int fd | |
13 | |
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
14 unsigned short |
11118 | 15 gaim_network_get_port_from_fd(fd) |
16 int fd | |
17 | |
18 const char * | |
19 gaim_network_get_public_ip() | |
20 | |
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
21 void |
11118 | 22 gaim_network_init() |
23 | |
11262 | 24 const unsigned char * |
11118 | 25 gaim_network_ip_atoi(ip) |
26 const char *ip | |
27 | |
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
28 int |
12910
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
29 gaim_network_listen(port, socket_type, cb, cb_data) |
11118 | 30 unsigned short port |
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
31 int socket_type |
12910
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
32 Gaim::NetworkListenCallback cb |
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
33 gpointer cb_data |
11118 | 34 |
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
35 int |
12910
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
36 gaim_network_listen_range(start, end, socket_type, cb, cb_data) |
11118 | 37 unsigned short start |
38 unsigned short end | |
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
39 int socket_type |
12910
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
40 Gaim::NetworkListenCallback cb |
3097275dbbdd
[gaim-migrate @ 15263]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
12773
diff
changeset
|
41 gpointer cb_data |
11118 | 42 |
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
43 void |
11118 | 44 gaim_network_set_public_ip(ip) |
45 const char *ip |