diff 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
line wrap: on
line diff
--- a/include/types.h	Thu Apr 23 16:13:02 2009 -0400
+++ b/include/types.h	Sat Apr 25 13:59:11 2009 -0400
@@ -4,6 +4,10 @@
 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 @@
   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;