diff options
author | 2009-04-25 13:59:11 -0400 | |
---|---|---|
committer | 2009-04-25 13:59:11 -0400 | |
commit | 3ad3130a7006e0a0fb4029d3acd46a4344c4f70a (patch) | |
tree | 780df82b8252d17fbc6a6f3dc7b66ba2c6e5fb41 /include/types.h | |
parent | 42a6d61be0c529b52d16e34998e96183219aea65 (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; |