libgdbus: Move common gdbus interfaces to libsystem package
[platform/core/system/storaged.git] / src / core / main.c
index fee7ee9..998dec2 100644 (file)
 #include <argos.h>
 #include <systemd/sd-daemon.h>
 #include <glib.h>
+#include <libgdbus/dbus-system.h>
 
 #include "log.h"
 #include "modules.h"
-#include "dbus.h"
 
 #define WATCHDOG_TIMEOUT       15 /* Seconds */
 
@@ -76,7 +76,7 @@ int main(int argc, char **argv)
                return -ENOMEM;
        }
 
-       if (!dbus_handle_init(G_BUS_TYPE_SYSTEM, STORAGED_BUS_NAME)) {
+       if (!dbus_handle_init(G_BUS_TYPE_SYSTEM, STORAGED_BUS_NAME, NULL, NULL)) {
                _E("Failed to set dbus connection (%s)", STORAGED_BUS_NAME);
                return 0;
        }