diff options
author | 2019-05-17 13:56:05 +0300 | |
---|---|---|
committer | 2019-05-17 13:56:05 +0300 | |
commit | e355b074ac00e8b05af89f854b0e46d80a5de00a (patch) | |
tree | c67cb5abee3c843b2ca2be112e68ce6cf1e706c7 /src/daemon/main.c | |
parent | d51604d94e66d400376091aa2a735a238bb74f20 (diff) | |
download | usurpation-e355b074ac00e8b05af89f854b0e46d80a5de00a.tar.gz usurpation-e355b074ac00e8b05af89f854b0e46d80a5de00a.tar.bz2 usurpation-e355b074ac00e8b05af89f854b0e46d80a5de00a.zip |
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 <gediminas@varciai.lt>
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stdio.h> #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 |