Mercurial > urweb
comparison include/types.h @ 737:d049d31a1966
Initial support for blobs and upload
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 25 Apr 2009 13:59:11 -0400 |
parents | 9864b64b1700 |
children | 4bb7e1c0550a |
comparison
equal
deleted
inserted
replaced
736:796e42c93c48 | 737:d049d31a1966 |
---|---|
2 | 2 |
3 typedef long long uw_Basis_int; | 3 typedef long long uw_Basis_int; |
4 typedef double uw_Basis_float; | 4 typedef double uw_Basis_float; |
5 typedef char* uw_Basis_string; | 5 typedef char* uw_Basis_string; |
6 typedef time_t uw_Basis_time; | 6 typedef time_t uw_Basis_time; |
7 typedef struct { | |
8 size_t size; | |
9 char *data; | |
10 } uw_Basis_blob; | |
7 | 11 |
8 struct __uws_0 { | 12 struct __uws_0 { |
9 }; | 13 }; |
10 | 14 |
11 typedef struct __uws_0 uw_unit; | 15 typedef struct __uws_0 uw_unit; |
22 typedef unsigned uw_Basis_client; | 26 typedef unsigned uw_Basis_client; |
23 typedef struct { | 27 typedef struct { |
24 unsigned cli, chn; | 28 unsigned cli, chn; |
25 } uw_Basis_channel; | 29 } uw_Basis_channel; |
26 | 30 |
31 typedef struct uw_Basis_file { | |
32 uw_Basis_string name; | |
33 uw_Basis_blob data; | |
34 } uw_Basis_file; | |
35 | |
36 typedef struct uw_Basis_files { | |
37 size_t size; | |
38 uw_Basis_file *files; | |
39 } uw_Basis_files; | |
27 | 40 |
28 typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY } failure_kind; | 41 typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY } failure_kind; |
29 | 42 |
30 | 43 |
31 #define INTS_MAX 50 | 44 #define INTS_MAX 50 |