diff options
author | Gergely Nagy <algernon@balabit.hu> | 2012-08-10 14:07:29 +0200 |
---|---|---|
committer | Gergely Nagy <algernon@balabit.hu> | 2012-08-10 16:53:06 +0200 |
commit | 8af1d67bd3e8a1766cb9984b3771162cc4c19669 (patch) | |
tree | d77ebb9f38a81c98a40bf41cbdc2548f987fd645 /t/test-common.h | |
parent | 7d21f9316f32168acefcfe40b5b4b91c8378369c (diff) | |
download | libumberlog-8af1d67bd3e8a1766cb9984b3771162cc4c19669.tar.gz libumberlog-8af1d67bd3e8a1766cb9984b3771162cc4c19669.tar.xz libumberlog-8af1d67bd3e8a1766cb9984b3771162cc4c19669.zip |
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 <algernon@balabit.hu>
Diffstat (limited to 't/test-common.h')
-rw-r--r-- | t/test-common.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <json.h> + +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 |