diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 17:26:53 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 17:26:53 -0400 |
commit | 0264695e9a76f87e6164c489c34af63fa893889d (patch) | |
tree | cfce730aeca8d6832d9ec09d1e4d3450f85a444d /include | |
parent | 243ec1bee9539195d85bfa8928c84ead412f2413 (diff) |
Subforms
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 1 | ||||
-rw-r--r-- | include/urweb.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/types.h b/include/types.h index 71a5ee0f..ddf17552 100644 --- a/include/types.h +++ b/include/types.h @@ -35,6 +35,7 @@ typedef struct uw_Basis_file { typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY, RETURN_BLOB } failure_kind; +typedef struct input *uw_input; #define INTS_MAX 50 #define FLOATS_MAX 100 diff --git a/include/urweb.h b/include/urweb.h index 51ab9149..c5381fa8 100644 --- a/include/urweb.h +++ b/include/urweb.h @@ -41,11 +41,13 @@ void uw_memstats(uw_context); int uw_send(uw_context, int sock); void uw_set_input(uw_context, const char *name, char *value); +void uw_set_file_input(uw_context, char *name, uw_Basis_file); + 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_file); uw_Basis_file uw_get_file_input(uw_context, int name); +void uw_enter_subform(uw_context, int name); +void uw_leave_subform(uw_context); void uw_write(uw_context, const char*); |