diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-25 14:35:49 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-25 14:35:49 -0400 |
commit | 3d0a7f3cd81daaa7d49de95de7fe4eb8d1288876 (patch) | |
tree | 71212823b38e6c57adf86e66184c7c6a00c451bc /include | |
parent | 2dd6e83e23759ef4f5a27e399e43636881449345 (diff) |
Only allow single-file upload per control
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 5 | ||||
-rw-r--r-- | include/urweb.h | 7 |
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); + |