diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-26 09:02:17 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-26 09:02:17 -0400 |
commit | 38507c697c6b5f277cabc5eb61afff14ea02da07 (patch) | |
tree | 0405c498a9fae8ff066ca8fdeafa8f85b0615dbe /include | |
parent | d2274ae571370a5f0b88a6b0a5b264fde29378b9 (diff) |
Returning a blob as page result
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 2 | ||||
-rw-r--r-- | include/urweb.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/types.h b/include/types.h index 90a9f524..71a5ee0f 100644 --- a/include/types.h +++ b/include/types.h @@ -33,7 +33,7 @@ typedef struct uw_Basis_file { uw_Basis_blob data; } uw_Basis_file; -typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY } failure_kind; +typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY, RETURN_BLOB } failure_kind; #define INTS_MAX 50 diff --git a/include/urweb.h b/include/urweb.h index cba746d4..4df7caef 100644 --- a/include/urweb.h +++ b/include/urweb.h @@ -157,6 +157,7 @@ uw_unit uw_Basis_send(uw_context, uw_Basis_channel, uw_Basis_string); uw_Basis_client uw_Basis_self(uw_context, uw_unit); uw_Basis_string uw_Basis_bless(uw_context, uw_Basis_string); +uw_Basis_string uw_Basis_blessMime(uw_context, uw_Basis_string); uw_Basis_string uw_unnull(uw_Basis_string); uw_Basis_string uw_Basis_makeSigString(uw_context, uw_Basis_string); @@ -166,3 +167,4 @@ uw_Basis_string uw_Basis_fileName(uw_context, uw_Basis_file); uw_Basis_string uw_Basis_fileMimeType(uw_context, uw_Basis_file); uw_Basis_blob uw_Basis_fileData(uw_context, uw_Basis_file); +__attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType); |