From 8af1d67bd3e8a1766cb9984b3771162cc4c19669 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 10 Aug 2012 14:07:29 +0200 Subject: Split the library into a linkable and an LD_PRELOAD-able part In order to satisfy the desire of using libumberlog, specifically ul_format(), without having to worry about syslog() & friends being overridden, split the library into two parts: A linkable library, which provides the new API, but does not override the legacy syslog() functions; and a new, LD_PRELOAD-able part, which does override the old ones. Signed-off-by: Gergely Nagy --- t/test-common.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 t/test-common.h (limited to 't/test-common.h') diff --git a/t/test-common.h b/t/test-common.h new file mode 100644 index 0000000..dcf6f64 --- /dev/null +++ b/t/test-common.h @@ -0,0 +1,14 @@ +#ifndef UMBERLOG_TEST_COMMON_H +#define UMBERLOG_TEST_COMMON_H 1 + +#include + +void verify_value (struct json_object *jo, const char *key, + const char *expected_value); +void verify_value_differs (struct json_object *jo, const char *key, + const char *unexpected_value); +void verify_value_exists (struct json_object *jo, const char *key); +void verify_value_missing (struct json_object *jo, const char *key); + +struct json_object *parse_msg (const char *msg); +#endif -- cgit