diff options
author | Adam Chlipala <adam@chlipala.net> | 2010-12-26 15:52:56 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2010-12-26 15:52:56 -0500 |
commit | bfbe3b9c6870d6a501816c080b52d9e0c922db6c (patch) | |
tree | bab01946f2153cdc269413638fa237740a933161 /include/urweb.h | |
parent | bc7000ce141d30e4db4842edd8fa067ac1ec191d (diff) |
Expose buffer type for other C libraries; replace minusSeconds with addSeconds
Diffstat (limited to 'include/urweb.h')
-rw-r--r-- | include/urweb.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/urweb.h b/include/urweb.h index 52c0caf5..69496d06 100644 --- a/include/urweb.h +++ b/include/urweb.h @@ -236,7 +236,7 @@ __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basi __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url); uw_Basis_time uw_Basis_now(uw_context); -uw_Basis_time uw_Basis_minusSeconds(uw_context, uw_Basis_time, uw_Basis_int); +uw_Basis_time uw_Basis_addSeconds(uw_context, uw_Basis_time, uw_Basis_int); extern const uw_Basis_time uw_Basis_minTime; void uw_register_transactional(uw_context, void *data, uw_callback commit, uw_callback rollback, uw_callback_with_retry free); @@ -309,4 +309,12 @@ uw_Basis_bool uw_Basis_eq_time(uw_context, uw_Basis_time, uw_Basis_time); uw_Basis_bool uw_Basis_lt_time(uw_context, uw_Basis_time, uw_Basis_time); uw_Basis_bool uw_Basis_le_time(uw_context, uw_Basis_time, uw_Basis_time); +void uw_buffer_init(size_t max, uw_buffer *, size_t initial); +void uw_buffer_free(uw_buffer *); +void uw_buffer_reset(uw_buffer *); +int uw_buffer_check(uw_buffer *, size_t extra); +size_t uw_buffer_used(uw_buffer *); +size_t uw_buffer_avail(uw_buffer *); +int uw_buffer_append(uw_buffer *, const char *, size_t); + #endif |