return reply;
}
-/*
- Method name Method call format string Reply format string
-{ "ShowDeviceList", NULL, NULL, request_show_device_list },
-{ "GetDeviceList" , "s", "a(issssssisibii)", request_get_device_list },
-{ "GetDeviceList2", "s", "a(issssssisibi)", request_get_device_list_2 },
-{ "Mount", "is", "i", request_public_mount_block },
-{ "Unmount", "ii", "i", request_public_unmount_block },
-{ "Format", "ii", "i", request_format_block },
-{ "GetDeviceInfo", "i", "(issssssisibii)", request_get_device_info },
-{ "GetMmcPrimary" , NULL, "(issssssisibii)" , request_get_mmc_primary },
-{ "PrivateMount", "is", "i", request_private_mount_block },
-{ "PrivateUnmount", "ii", "i", request_private_unmount_block },
+/*
+ Method name Method call format string Reply format string
+{ "ShowDeviceList", NULL, NULL, request_show_device_list },
+{ "GetDeviceList" , "s", "a(issssssisibii)", request_get_device_list },
+{ "GetDeviceList2", "s", "a(issssssisibi)", request_get_device_list_2 },
+{ "Mount", "is", "i", request_public_mount_block },
+{ "Unmoun, "ii", "i", request_public_unmount_block },
+{ "Format", "ii", "i", request_format_block },
+{ "GetDeviceInfo", "i", "(issssssisibii)", request_get_device_info },
+{ "GetMmcPrimary", NULL, "(issssssisibii)", request_get_mmc_primary },
+{ "PrivateMount", "is", "i", request_private_mount_block },
+{ "PrivateUnmount", "ii", "i", request_private_unmount_block },
*/
static const dbus_method_s manager_methods[] = {
if (ret < 0)
_E("Failed to make directory: %d", errno);
} else {
- ret = chmod(EXTERNAL_STORAGE_PATH, 644);
+ ret = chmod(EXTERNAL_STORAGE_PATH, 0644);
if (ret < 0)
_E("Fail to change permissions of a file");
}
if (ret < 0)
_E("Failed to make directory: %d", errno);
} else {
- ret = chmod(EXTENDED_INTERNAL_PATH, 644);
+ ret = chmod(EXTENDED_INTERNAL_PATH, 0644);
if (ret < 0)
_E("Fail to change permissions of a file");
}
_D("Method call handler");
- if (!msg || !mh) {
+ if (!msg || !mh)
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; // No message to handle
- }
iface = mh->iface;
methods = iface->methods;
struct watch_info *winfo;
dbus_bool_t enabled;
- _I("add_watch_cb %s", (dbus_watch_get_enabled(watch) == 0 ? "disabled": "enabled"));
+ _I("add_watch_cb %s", (dbus_watch_get_enabled(watch) == 0 ? "disabled" : "enabled"));
enabled = dbus_watch_get_enabled(watch);
dbus_connection_ref(conn);
- while (dbus_connection_get_dispatch_status(conn) == DBUS_DISPATCH_DATA_REMAINS) {
+ while (dbus_connection_get_dispatch_status(conn) == DBUS_DISPATCH_DATA_REMAINS)
dbus_connection_dispatch(conn);
- }
dbus_connection_unref(conn);