diff options
author | Adam Chlipala <adam@chlipala.net> | 2010-12-18 15:17:09 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2010-12-18 15:17:09 -0500 |
commit | 541a15124e163ce8aff94bf37f24c54085c19884 (patch) | |
tree | 3f41e8cb1cc8bb5b84384840ebdf5b296e0c1732 /include/types.h | |
parent | 39cd3aba26129807a15ccc29bb9f71e2537c4551 (diff) |
Periodic tasks
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h index 2adda753..01776213 100644 --- a/include/types.h +++ b/include/types.h @@ -59,6 +59,11 @@ typedef void (*uw_callback_with_retry)(void *, int will_retry); typedef void (*uw_logger)(void*, const char *fmt, ...); typedef struct { + void (*callback)(uw_context); + unsigned int period; +} uw_periodic; + +typedef struct { int inputs_len, timeout; char *url_prefix; @@ -80,6 +85,8 @@ typedef struct { int (*check_mime)(const char *); void (*on_error)(uw_context, char *); + + uw_periodic *periodics; // 0-terminated array } uw_app; #define ERROR_BUF_LEN 1024 |