From b7d9b4988bbbce352f8ced2db3ee35f144ef9e21 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 13 Sep 2016 20:35:39 +1000 Subject: [PATCH] * src/sources/source.h : tune api --- src/sources/source.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sources/source.h b/src/sources/source.h index 125bfe7..f344757 100644 --- a/src/sources/source.h +++ b/src/sources/source.h @@ -22,7 +22,8 @@ extern cfg_t *create(const char *init); extern bool config(cfg_t *c, const char *key, const char *value); extern bool ready(cfg_t *c); extern char *error(cfg_t *c); +extern void errorcb(cfg_t *c, void (*cb)(char *errstr)); extern bool start(cfg_t *c); -extern bool stop(cfg_t *c); extern bool next(cfg_t *c, char *buf, size_t bufsize, bool reset); +extern bool stop(cfg_t *c); extern void destroy(cfg_t *c);