From 4d419aab546f5f38556aca15dcfff9098418850b Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Sun, 30 Sep 2018 15:12:36 +0200 Subject: [PATCH] backend_notify backward compatible --- lib/clixon/clixon_stream.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/clixon/clixon_stream.h b/lib/clixon/clixon_stream.h index 9e47426a..d88c208a 100644 --- a/lib/clixon/clixon_stream.h +++ b/lib/clixon/clixon_stream.h @@ -76,4 +76,8 @@ int stream_notify(clicon_handle h, char *stream, const char *event, ...) __attr int stream_notify(clicon_handle h, char *stream, const char *event, ...); #endif +/* Backward compatible macro for <1.8 */ +#define backend_notify_xml(h, stream, level, x) stream_notify_xml(h, stream, x) +#define backend_notify(h, stream, level, event) stream_notify(h, stream, event) + #endif /* _CLIXON_STREAM_H_ */