comparison include/urweb.h @ 1369:1a78ca089bd0

Expose buffer type for other C libraries; replace minusSeconds with addSeconds
author Adam Chlipala <adam@chlipala.net>
date Sun, 26 Dec 2010 15:52:56 -0500
parents b02cb9da5686
children 44a12a321150
comparison
equal deleted inserted replaced
1368:b2bc8bcd546f 1369:1a78ca089bd0
234 234
235 __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType); 235 __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType);
236 __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url); 236 __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url);
237 237
238 uw_Basis_time uw_Basis_now(uw_context); 238 uw_Basis_time uw_Basis_now(uw_context);
239 uw_Basis_time uw_Basis_minusSeconds(uw_context, uw_Basis_time, uw_Basis_int); 239 uw_Basis_time uw_Basis_addSeconds(uw_context, uw_Basis_time, uw_Basis_int);
240 extern const uw_Basis_time uw_Basis_minTime; 240 extern const uw_Basis_time uw_Basis_minTime;
241 241
242 void uw_register_transactional(uw_context, void *data, uw_callback commit, uw_callback rollback, uw_callback_with_retry free); 242 void uw_register_transactional(uw_context, void *data, uw_callback commit, uw_callback rollback, uw_callback_with_retry free);
243 243
244 void uw_check_heap(uw_context, size_t extra); 244 void uw_check_heap(uw_context, size_t extra);
307 307
308 uw_Basis_bool uw_Basis_eq_time(uw_context, uw_Basis_time, uw_Basis_time); 308 uw_Basis_bool uw_Basis_eq_time(uw_context, uw_Basis_time, uw_Basis_time);
309 uw_Basis_bool uw_Basis_lt_time(uw_context, uw_Basis_time, uw_Basis_time); 309 uw_Basis_bool uw_Basis_lt_time(uw_context, uw_Basis_time, uw_Basis_time);
310 uw_Basis_bool uw_Basis_le_time(uw_context, uw_Basis_time, uw_Basis_time); 310 uw_Basis_bool uw_Basis_le_time(uw_context, uw_Basis_time, uw_Basis_time);
311 311
312 void uw_buffer_init(size_t max, uw_buffer *, size_t initial);
313 void uw_buffer_free(uw_buffer *);
314 void uw_buffer_reset(uw_buffer *);
315 int uw_buffer_check(uw_buffer *, size_t extra);
316 size_t uw_buffer_used(uw_buffer *);
317 size_t uw_buffer_avail(uw_buffer *);
318 int uw_buffer_append(uw_buffer *, const char *, size_t);
319
312 #endif 320 #endif