Mercurial > pidgin
annotate plugins/perl/common/Network.xs @ 12867:cf3540702d21
[gaim-migrate @ 15218]
A patch from Ranma42 in SF Bug #1220557, with lots of changes by me.
This merges gaim_conv_chat_remove_users and gaim_conv_chat_remove_user.
As I did with gaim_conv_chat_add_user and gaim_conv_chat_add_users,
gaim_conv_chat_remove_user is just a simple wrapper. The conversation UI op
chat_remove_user has similarly been removed, in favor of UIs only having to
implement one function to remove users.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sat, 14 Jan 2006 00:06:24 +0000 |
| parents | 96f9b4798012 |
| children | 3097275dbbdd |
| 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 |
|
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
29 gaim_network_listen(port, socket_type) |
| 11118 | 30 unsigned short port |
|
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
31 int socket_type |
| 11118 | 32 |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
33 int |
|
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
34 gaim_network_listen_range(start, end, socket_type) |
| 11118 | 35 unsigned short start |
| 36 unsigned short end | |
|
12730
d5b8f4dc1622
[gaim-migrate @ 15074]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11290
diff
changeset
|
37 int socket_type |
| 11118 | 38 |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
12730
diff
changeset
|
39 void |
| 11118 | 40 gaim_network_set_public_ip(ip) |
| 41 const char *ip |
