Mercurial > urweb
comparison include/urweb.h @ 863:305bc0a431de
.msgs processing in FastCGI
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 27 Jun 2009 17:50:31 -0400 |
parents | a738002d5b4d |
children | 6304f5e8fbb4 |
comparison
equal
deleted
inserted
replaced
862:66dbf3953758 | 863:305bc0a431de |
---|---|
3 | 3 |
4 #include <sys/types.h> | 4 #include <sys/types.h> |
5 | 5 |
6 #include "types.h" | 6 #include "types.h" |
7 | 7 |
8 int uw_really_send(int sock, void *buf, ssize_t len); | 8 int uw_really_send(int sock, const void *buf, ssize_t len); |
9 | 9 |
10 extern uw_unit uw_unit_v; | 10 extern uw_unit uw_unit_v; |
11 | 11 |
12 void uw_global_init(void); | 12 void uw_global_init(void); |
13 | 13 |
14 void uw_client_connect(unsigned id, int pass, int sock); | 14 void uw_client_connect(unsigned id, int pass, int sock, |
15 int (*send)(int sockfd, const void *buf, size_t len), | |
16 int (*close)(int fd)); | |
15 void uw_prune_clients(uw_context); | 17 void uw_prune_clients(uw_context); |
16 failure_kind uw_initialize(uw_context); | 18 failure_kind uw_initialize(uw_context); |
17 | 19 |
18 uw_context uw_init(void); | 20 uw_context uw_init(void); |
19 void uw_set_db(uw_context, void*); | 21 void uw_set_db(uw_context, void*); |
41 void uw_end_region(uw_context); | 43 void uw_end_region(uw_context); |
42 void uw_memstats(uw_context); | 44 void uw_memstats(uw_context); |
43 | 45 |
44 int uw_send(uw_context, int sock); | 46 int uw_send(uw_context, int sock); |
45 int uw_print(uw_context, int fd); | 47 int uw_print(uw_context, int fd); |
46 int uw_output(uw_context ctx, int (*output)(void *data, char *buf, size_t len), void *data); | 48 int uw_output(uw_context ctx, int (*output)(void *data, const char *buf, size_t len), void *data); |
47 | 49 |
48 int uw_set_input(uw_context, const char *name, char *value); | 50 int uw_set_input(uw_context, const char *name, char *value); |
49 int uw_set_file_input(uw_context, char *name, uw_Basis_file); | 51 int uw_set_file_input(uw_context, char *name, uw_Basis_file); |
50 | 52 |
51 char *uw_get_input(uw_context, int name); | 53 char *uw_get_input(uw_context, int name); |