summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-25 14:35:49 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-25 14:35:49 -0400
commitfed2930b7cf791909b9f5e073720bdc4e170acad (patch)
tree71212823b38e6c57adf86e66184c7c6a00c451bc /include
parent6c83085b52f4c2d6cd9a8d35f1957acdc5e8b55b (diff)
Only allow single-file upload per control
Diffstat (limited to 'include')
-rw-r--r--include/types.h5
-rw-r--r--include/urweb.h7
2 files changed, 3 insertions, 9 deletions
diff --git a/include/types.h b/include/types.h
index 0cb81cb5..69407b07 100644
--- a/include/types.h
+++ b/include/types.h
@@ -33,11 +33,6 @@ typedef struct uw_Basis_file {
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;
diff --git a/include/urweb.h b/include/urweb.h
index 4244aa6d..46eaab5f 100644
--- a/include/urweb.h
+++ b/include/urweb.h
@@ -43,8 +43,8 @@ void uw_set_input(uw_context, const char *name, char *value);
char *uw_get_input(uw_context, int name);
char *uw_get_optional_input(uw_context, int name);
-void uw_set_file_input(uw_context, char *name, uw_Basis_files fs);
-uw_Basis_files uw_get_file_input(uw_context, int name);
+void uw_set_file_input(uw_context, char *name, uw_Basis_file);
+uw_Basis_file uw_get_file_input(uw_context, int name);
void uw_write(uw_context, const char*);
@@ -164,5 +164,4 @@ uw_Basis_string uw_Basis_sigString(uw_context, uw_unit);
uw_Basis_string uw_Basis_fileName(uw_context, uw_Basis_file);
uw_Basis_blob uw_Basis_fileData(uw_context, uw_Basis_file);
-uw_Basis_int uw_Basis_numFiles(uw_context, uw_Basis_files);
-uw_Basis_file uw_Basis_fileNum(uw_context, uw_Basis_files, uw_Basis_int);
+