libgdbus: Move common gdbus interfaces to libsystem package
[platform/core/system/storaged.git] / src / storage / storage.c
index 9e7b368..3106eae 100644 (file)
@@ -17,7 +17,9 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <fcntl.h>
 #include <assert.h>
 #include <limits.h>
 #include <storage.h>
 #include <tzplatform_config.h>
 #include <glib.h>
+#include <libgdbus/dbus-system.h>
 
 #include "log.h"
 #include "config-parser.h"
-#include "dbus.h"
 #include "module-intf.h"
 
 #define MEMORY_STATUS_TMP_PATH  "/tmp"
@@ -107,7 +109,7 @@ static int launch_memory_popup(int num, ...)
 
        va_start(args, num);
 
-       ret = dbus_method_async_pairs(POPUP_BUS_NAME,
+       ret = dbus_handle_method_async_pairs(POPUP_BUS_NAME,
                        POPUP_PATH_SYSTEM,
                        POPUP_INTERFACE_SYSTEM,
                        "PopupLaunch",