diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-25 13:59:11 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-25 13:59:11 -0400 |
commit | e6ee37d85ac1e6fa7e2d20fc4320b89129b58ac1 (patch) | |
tree | 780df82b8252d17fbc6a6f3dc7b66ba2c6e5fb41 /include/types.h | |
parent | df4a000b4c97378ccadbd1f94d9f930f87228b28 (diff) |
Initial support for blobs and upload
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h index c80653d3..0cb81cb5 100644 --- a/include/types.h +++ b/include/types.h @@ -4,6 +4,10 @@ typedef long long uw_Basis_int; typedef double uw_Basis_float; typedef char* uw_Basis_string; typedef time_t uw_Basis_time; +typedef struct { + size_t size; + char *data; +} uw_Basis_blob; struct __uws_0 { }; @@ -24,6 +28,15 @@ typedef struct { unsigned cli, chn; } uw_Basis_channel; +typedef struct uw_Basis_file { + uw_Basis_string name; + uw_Basis_blob data; +} uw_Basis_file; + +typedef struct uw_Basis_files { + size_t size; + uw_Basis_file *files; +} uw_Basis_files; typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY } failure_kind; |