From e355b074ac00e8b05af89f854b0e46d80a5de00a Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 17 May 2019 13:56:05 +0300 Subject: daemon: add a skeleton libpurple interface. This loads and initialized libpurple, but does not actually do anything. This should be enough to warrant closing Ticket #18. Signed-off-by: Gediminas Jakutis --- src/daemon/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/daemon/main.c') diff --git a/src/daemon/main.c b/src/daemon/main.c index 302a9ce..41e798b 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -24,6 +24,7 @@ #include #include "settings.h" #include "net.h" +#include "purple.h" /* the logic is a placeholder right now */ int main(int argc, char **argv) @@ -35,6 +36,9 @@ int main(int argc, char **argv) settings_init(); net_init(setting_port()); /* TODO: get port from settings. */ + if (purple_init() && setting_verbose()) { + fprintf(stderr, "libpurple initialization failed\n"); + } /* by default and if running by as a system service, the init system * needs to keep control of the process and thus only detach if -- cgit v1.2.3