diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-11 13:33:18 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2017-06-11 13:33:18 +0100 |
commit | 768988d88470ffc1c64c35d6f9d3c37a9a6f75da (patch) | |
tree | e1af2f6bf6b69583bdf25e3cbb83e2c842d925d8 /include | |
parent | 602a6b133f83e2349a4b233536fdca90446638cd (diff) | |
download | libnslog-768988d88470ffc1c64c35d6f9d3c37a9a6f75da.tar.gz libnslog-768988d88470ffc1c64c35d6f9d3c37a9a6f75da.tar.bz2 |
Simple parser for filter syntax
Diffstat (limited to 'include')
-rw-r--r-- | include/nslog/nslog.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nslog/nslog.h b/include/nslog/nslog.h index fc3ead4..10b90a8 100644 --- a/include/nslog/nslog.h +++ b/include/nslog/nslog.h @@ -30,6 +30,7 @@ typedef enum { const char *nslog_level_name(nslog_level level); #define NSLOG_LEVEL_DD NSLOG_LEVEL_DEEPDEBUG +#define NSLOG_LEVEL_DBG NSLOG_LEVEL_DEBUG #define NSLOG_LEVEL_CHAT NSLOG_LEVEL_VERBOSE #define NSLOG_LEVEL_WARN NSLOG_LEVEL_WARNING #define NSLOG_LEVEL_ERR NSLOG_LEVEL_ERROR @@ -105,6 +106,7 @@ typedef enum { NSLOG_NO_ERROR = 0, NSLOG_NO_MEMORY = 1, NSLOG_UNCORKED = 2, + NSLOG_PARSE_ERROR = 3, } nslog_error; typedef void (*nslog_callback)(void *context, nslog_entry_context_t *ctx, @@ -145,4 +147,9 @@ nslog_filter_t *nslog_filter_unref(nslog_filter_t *filter); nslog_error nslog_filter_set_active(nslog_filter_t *filter, nslog_filter_t **prev); +char *nslog_filter_sprintf(nslog_filter_t *filter); + +nslog_error nslog_filter_from_text(const char *input, + nslog_filter_t **output); + #endif /* NSLOG_NSLOG_H_ */ |