summaryrefslogtreecommitdiffstats
path: root/include/systemd.h
blob: d05d2f3819bbc44f270d4b83ca17001d62590598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _INCLUDE_SYSTEMD_H_
#define _INCLUDE_SYSTEMD_H_

#include <sys/types.h>

#ifdef BUILD_SYSTEMD
void sd_ct_watchdog_init(void);
void sd_ct_init(void);
void sd_ct_mainpid(pid_t pid);
void sd_ct_stop(void);
#else /* BUILD_SYSTEMD */
static inline void sd_ct_watchdog_init(void) {};
static inline void sd_ct_init(void) {};
static inline void sd_ct_mainpid(pid_t pid) {};
static inline void sd_ct_stop(void) {};
#endif /* BUILD_SYSTEMD */

#endif /* _INCLUDE_SYSTEMD_H_ */