Remove system-settings dependency
[platform/core/system/libstorage.git] / src / storage-external-dbus.h
index d279c65..0589959 100644 (file)
 #include "list.h"
 
 #define STORAGE_EXT_BUS_NAME              "org.tizen.system.storage"
-#define STORAGE_EXT_PATH                  "/Org/Tizen/System/Storage/Block"
-#define STORAGE_EXT_PATH_DEVICES          STORAGE_EXT_PATH"/Devices"
-#define STORAGE_EXT_PATH_MANAGER          STORAGE_EXT_PATH"/Manager"
-#define STORAGE_EXT_IFACE                 STORAGE_EXT_BUS_NAME".Block"
+#define STORAGE_EXT_PATH_MANAGER          "/Org/Tizen/System/Storage/Block/Manager"
 #define STORAGE_EXT_IFACE_MANAGER         STORAGE_EXT_BUS_NAME".BlockManager"
 
 enum mount_state {
@@ -41,6 +38,7 @@ enum storage_ext_state {
        STORAGE_EXT_REMOVED,
        STORAGE_EXT_ADDED,
        STORAGE_EXT_CHANGED,
+       STORAGE_EXT_BLOCKED,
 };
 
 enum storage_ext_type {
@@ -84,4 +82,8 @@ void storage_ext_unregister_device_change(storage_ext_changed_cb func);
 
 int storage_ext_get_device_info(int storage_id, storage_ext_device *info);
 
+/* storage-internal.c */
+GVariant *dbus_method_call_sync(const gchar *dest, const gchar *path,
+               const gchar *iface, const gchar *method, GVariant *param);
+
 #endif /* __STORAGE_EXTERNAL_DBUS_H__ */