summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-06 00:13:28 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-06 00:13:28 +0000
commitd9f5cb7a28ee79e299e41d3ce325171f01e1a3d7 (patch)
treec13af66675cbd2ed3de340ab139297e4dcdbd199 /src/include
parent8d66c8c5cac310958fa64e3f62b828ea960202ba (diff)
downloadtipidee-d9f5cb7a28ee79e299e41d3ce325171f01e1a3d7.tar.xz
Some fixes, preparation for changes in error responses
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tipidee/util.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/tipidee/util.h b/src/include/tipidee/util.h
index 5160a69..7870a23 100644
--- a/src/include/tipidee/util.h
+++ b/src/include/tipidee/util.h
@@ -19,9 +19,16 @@ enum tipidee_transfercoding_e
TIPIDEE_TRANSFERCODING_UNKNOWN
} ;
+typedef struct tipidee_defaulttext_s tipidee_defaulttext, *tipidee_defaulttext_ref ;
+struct tipidee_defaulttext_s
+{
+ char const *reason ;
+ char const *text ;
+} ;
+
extern int tipidee_util_chunked_read (buffer *, stralloc *, size_t, tain const *, tain *) ;
#define tipidee_util_chunked_read_g(b, sa, max, deadline) tipidee_util_chunked_read(b, sa, max, (deadline), &STAMP)
extern int tipidee_util_httpdate (char const *, tain *) ;
-
+extern int tipidee_util_defaulttext (unsigned int, tipidee_defaulttext *) ;
#endif