summaryrefslogtreecommitdiffstats
path: root/runtime/sd-daemon.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-09-08 12:46:03 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-09-08 12:46:03 +0200
commit21a2672222a1b403ff0811154dec156676bed732 (patch)
tree982844283e04305132de3508e38d413c25a840cc /runtime/sd-daemon.h
parent3e2d011e8c1c42801194d387b75ca4f4a175ae5d (diff)
downloadrsyslog-21a2672222a1b403ff0811154dec156676bed732.tar.gz
rsyslog-21a2672222a1b403ff0811154dec156676bed732.tar.xz
rsyslog-21a2672222a1b403ff0811154dec156676bed732.zip
moved systemd interface to rsyslog convenience lib
Mostly a refresh of sd-daemon.[ch] from its source plus some make file changes. We now have systemd interfaces inside rsyslog, so that all plugins interested can call the interfaces. Seems not to be totally necessary right now, but will help in the long term.
Diffstat (limited to 'runtime/sd-daemon.h')
-rw-r--r--runtime/sd-daemon.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/sd-daemon.h b/runtime/sd-daemon.h
index fd6221f2..45aac8bd 100644
--- a/runtime/sd-daemon.h
+++ b/runtime/sd-daemon.h
@@ -1,4 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#ifndef foosddaemonhfoo
#define foosddaemonhfoo
@@ -67,9 +67,13 @@ extern "C" {
See sd-daemon(7) for more information.
*/
-#if __GNUC__ >= 4
+#if (__GNUC__ >= 4)
#define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
-#define _sd_hidden_ __attribute__ ((visibility("hidden")))
+# if defined(SD_EXPORT_SYMBOLS)
+# define _sd_hidden_
+# else
+# define _sd_hidden_ __attribute__ ((visibility("hidden")))
+# endif
#else
#define _sd_printf_attr_(a,b)
#define _sd_hidden_
@@ -171,7 +175,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t
/*
Informs systemd about changed daemon state. This takes a number of
- newline seperated environment-style variable assignments in a
+ newline separated environment-style variable assignments in a
string. The following variables are known:
READY=1 Tells systemd that daemon startup is finished (only