Mercurial > urweb
comparison include/urweb.h @ 244:71bafe66dbe1
Laconic -> Ur
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 31 Aug 2008 08:32:18 -0400 |
parents | include/lacweb.h@3eb53c957d10 |
children | 4d80d6122df1 |
comparison
equal
deleted
inserted
replaced
243:2b9dfaffb008 | 244:71bafe66dbe1 |
---|---|
1 #include <sys/types.h> | |
2 | |
3 #include "types.h" | |
4 | |
5 int lw_really_send(int sock, void *buf, ssize_t len); | |
6 | |
7 extern lw_unit lw_unit_v; | |
8 | |
9 lw_context lw_init(size_t page_len, size_t heap_len); | |
10 void lw_free(lw_context); | |
11 void lw_reset(lw_context); | |
12 void lw_reset_keep_request(lw_context); | |
13 void lw_reset_keep_error_message(lw_context); | |
14 failure_kind lw_begin(lw_context, char *path); | |
15 | |
16 void lw_error(lw_context, failure_kind, const char *fmt, ...); | |
17 char *lw_error_message(lw_context); | |
18 | |
19 void *lw_malloc(lw_context, size_t); | |
20 int lw_send(lw_context, int sock); | |
21 | |
22 void lw_set_input(lw_context, char *name, char *value); | |
23 char *lw_get_input(lw_context, int name); | |
24 char *lw_get_optional_input(lw_context, int name); | |
25 | |
26 void lw_write(lw_context, const char*); | |
27 | |
28 | |
29 char *lw_Basis_htmlifyString(lw_context, lw_Basis_string); | |
30 void lw_Basis_htmlifyString_w(lw_context, lw_Basis_string); | |
31 | |
32 char *lw_Basis_attrifyInt(lw_context, lw_Basis_int); | |
33 char *lw_Basis_attrifyFloat(lw_context, lw_Basis_float); | |
34 char *lw_Basis_attrifyString(lw_context, lw_Basis_string); | |
35 | |
36 void lw_Basis_attrifyInt_w(lw_context, lw_Basis_int); | |
37 void lw_Basis_attrifyFloat_w(lw_context, lw_Basis_float); | |
38 void lw_Basis_attrifyString_w(lw_context, lw_Basis_string); | |
39 | |
40 | |
41 char *lw_Basis_urlifyInt(lw_context, lw_Basis_int); | |
42 char *lw_Basis_urlifyFloat(lw_context, lw_Basis_float); | |
43 char *lw_Basis_urlifyString(lw_context, lw_Basis_string); | |
44 char *lw_Basis_urlifyBool(lw_context, lw_Basis_bool); | |
45 | |
46 void lw_Basis_urlifyInt_w(lw_context, lw_Basis_int); | |
47 void lw_Basis_urlifyFloat_w(lw_context, lw_Basis_float); | |
48 void lw_Basis_urlifyString_w(lw_context, lw_Basis_string); | |
49 void lw_Basis_urlifyBool_w(lw_context, lw_Basis_bool); | |
50 | |
51 lw_Basis_int lw_Basis_unurlifyInt(lw_context, char **); | |
52 lw_Basis_float lw_Basis_unurlifyFloat(lw_context, char **); | |
53 lw_Basis_string lw_Basis_unurlifyString(lw_context, char **); | |
54 lw_Basis_bool lw_Basis_unurlifyBool(lw_context, char **); | |
55 | |
56 lw_Basis_string lw_Basis_strcat(lw_context, lw_Basis_string, lw_Basis_string); |