Mercurial > pidgin
annotate plugins/perl/common/SSLConn.xs @ 13253:87a7c3077c19
[gaim-migrate @ 15619]
More cleaning up of oscar. Renamed some functions to be more clear.
Got rid of some stuff that wasn't used. Inlined some small things
in conn.c that were only used once.
The goals of all this are
1. Non-blocking I/O for all connections
2. p2p stuff won't use the same struct as oscar connections, because
that's stupid
3. The oscar PRPL should be less scary
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 12 Feb 2006 21:27:04 +0000 |
| parents | 96f9b4798012 |
| children |
| rev | line source |
|---|---|
| 11118 | 1 #include "module.h" |
| 2 | |
| 3 /* TODO | |
| 4 | |
| 5 | |
| 6 Gaim::Ssl::Connection | |
| 7 gaim_ssl_connect(account, host, port, func, error_func, data) | |
| 8 Gaim::Account account | |
| 9 const char *host | |
| 10 int port | |
| 11 GaimSslInputFunction func | |
| 12 GaimSslErrorFunction error_func | |
| 13 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
14 void |
| 11118 | 15 gaim_ssl_input_add(gsc, func, data) |
| 16 Gaim::Ssl::Connection gsc | |
| 17 Gaim::SslInputFunction func | |
| 18 | |
| 19 Gaim::Ssl::Connection | |
| 20 gaim_ssl_connect_fd(account, fd, func, error_func, data) | |
| 21 Gaim::Account account | |
| 22 int fd | |
| 23 GaimSslInputFunction func | |
| 24 GaimSslErrorFunction error_func | |
| 25 | |
| 26 */ | |
| 27 | |
| 28 MODULE = Gaim::SSL PACKAGE = Gaim::SSL PREFIX = gaim_ssl_ | |
| 29 PROTOTYPES: ENABLE | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
30 |
|
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
31 void |
| 11118 | 32 gaim_ssl_close(gsc) |
| 33 Gaim::Ssl::Connection gsc | |
| 34 | |
| 35 Gaim::Ssl::Ops | |
| 36 gaim_ssl_get_ops() | |
| 37 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
38 void |
| 11118 | 39 gaim_ssl_init() |
| 40 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
41 gboolean |
| 11118 | 42 gaim_ssl_is_supported() |
| 43 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
44 size_t |
| 11118 | 45 gaim_ssl_read(gsc, buffer, len) |
| 46 Gaim::Ssl::Connection gsc | |
| 47 void * buffer | |
| 48 size_t len | |
| 49 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
50 void |
| 11118 | 51 gaim_ssl_set_ops(ops) |
| 52 Gaim::Ssl::Ops ops | |
| 53 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
54 void |
| 11118 | 55 gaim_ssl_uninit() |
| 56 | |
|
12773
96f9b4798012
[gaim-migrate @ 15120]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11290
diff
changeset
|
57 size_t |
| 11118 | 58 gaim_ssl_write(gsc, buffer, len) |
| 59 Gaim::Ssl::Connection gsc | |
| 60 void * buffer | |
| 61 size_t len |
