summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-25 14:47:16 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-25 14:47:16 -0400
commit609db88f316604bf1084dbb0defe5e6c0eaf07ae (patch)
treea76de7cb5b97a481d0ef3ddb3b406ae4b0f67a7f /include
parentfed2930b7cf791909b9f5e073720bdc4e170acad (diff)
Add MIME type to file
Diffstat (limited to 'include')
-rw-r--r--include/types.h2
-rw-r--r--include/urweb.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/types.h b/include/types.h
index 69407b07..90a9f524 100644
--- a/include/types.h
+++ b/include/types.h
@@ -29,7 +29,7 @@ typedef struct {
} uw_Basis_channel;
typedef struct uw_Basis_file {
- uw_Basis_string name;
+ uw_Basis_string name, type;
uw_Basis_blob data;
} uw_Basis_file;
diff --git a/include/urweb.h b/include/urweb.h
index 46eaab5f..cba746d4 100644
--- a/include/urweb.h
+++ b/include/urweb.h
@@ -163,5 +163,6 @@ uw_Basis_string uw_Basis_makeSigString(uw_context, uw_Basis_string);
uw_Basis_string uw_Basis_sigString(uw_context, uw_unit);
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);