Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/modules/systemd/libzbxsystemd.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@

#define LOG_PREFIX "[systemd] "

// pid that initialised the module, before forking workers.
int mainpid;

// timeout set by host agent
int timeout;
extern int timeout;

// D-Bus api
#define DBUS_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties"
Expand Down Expand Up @@ -79,7 +76,7 @@ int dbus_marshall_property(
#define SYSTEMD_UNIT_INTERFACE SYSTEMD_SERVICE_NAME ".Unit"
#define SYSTEMD_SERVICE_INTERFACE SYSTEMD_SERVICE_NAME ".Service"

DBusConnection *conn;
extern DBusConnection *conn;

int systemd_get_unit(char *s, size_t n, const char* unit);
int systemd_unit_is_service(const char *path);
Expand Down