Browse Source

* src/sources/source.h : tune api

master
Alex 'AdUser' Z 8 years ago
parent
commit
fa0fde9b52
  1. 2
      src/sources/files.c
  2. 2
      src/sources/source.h

2
src/sources/files.c

@ -139,7 +139,7 @@ error(cfg_t *cfg) {
} }
void void
errorcb(cfg_t *cfg, void (*cb)(char *errstr)) { errcb(cfg_t *cfg, void (*cb)(char *errstr)) {
assert(cfg != NULL); assert(cfg != NULL);
assert(cb != NULL); assert(cb != NULL);

2
src/sources/source.h

@ -22,7 +22,7 @@ extern cfg_t *create(const char *init);
extern bool config(cfg_t *c, const char *key, const char *value); extern bool config(cfg_t *c, const char *key, const char *value);
extern bool ready(cfg_t *c); extern bool ready(cfg_t *c);
extern char *error(cfg_t *c); extern char *error(cfg_t *c);
extern void errorcb(cfg_t *c, void (*cb)(char *errstr)); extern void errcb(cfg_t *c, void (*cb)(char *errstr));
extern bool start(cfg_t *c); extern bool start(cfg_t *c);
extern bool next(cfg_t *c, char *buf, size_t bufsize, bool reset); extern bool next(cfg_t *c, char *buf, size_t bufsize, bool reset);
extern bool stop(cfg_t *c); extern bool stop(cfg_t *c);

Loading…
Cancel
Save