|
Revision 1675, 0.7 kB
(checked in by jan, 20 months ago)
|
|
another attempt to get the IMPORT/EXPORT stuff right (patch from jtiai)
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef _CONNECTIONS_H_ |
|---|
| 2 | #define _CONNECTIONS_H_ |
|---|
| 3 | |
|---|
| 4 | #include "settings.h" |
|---|
| 5 | #include "server.h" |
|---|
| 6 | #include "fdevent.h" |
|---|
| 7 | |
|---|
| 8 | LI_API connection* connection_init(server *srv); |
|---|
| 9 | LI_API int connection_reset(server *srv, connection *con); |
|---|
| 10 | LI_API void connections_free(server *srv); |
|---|
| 11 | |
|---|
| 12 | LI_API connection* connection_accept(server *srv, server_socket *srv_sock); |
|---|
| 13 | LI_API int connection_close(server *srv, connection *con); |
|---|
| 14 | |
|---|
| 15 | LI_API int connection_set_state(server *srv, connection *con, connection_state_t state); |
|---|
| 16 | LI_API const char * connection_get_state(connection_state_t state); |
|---|
| 17 | LI_API const char * connection_get_short_state(connection_state_t state); |
|---|
| 18 | LI_API int connection_state_machine(server *srv, connection *con); |
|---|
| 19 | |
|---|
| 20 | #endif |
|---|