aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h7
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