goto err;
}
- _E("%s", buf);
+ /* todo: delete this */
+#if 0
+ if (strlen(buf) <= 512) {
+ _E("%s", buf);
+ } else {
+ _E("%s", buf + strlen(buf) - 512);
+ }
+#endif
nodeinfo = g_dbus_node_info_new_for_xml(buf, &err);
if (!nodeinfo || err) {
struct haptic_info {
char *sender;
dd_list *handle_list;
+ guint id_watch;
};
struct vibrate_effect_info {
remove_haptic_info(info);
}
-static guint id_name_watch;
static struct haptic_info *add_haptic_info(const char *sender)
{
struct haptic_info *info;
info->sender = strdup(sender);
DD_LIST_APPEND(haptic_handle_list, info);
- id_name_watch = dbus_handle_watch_name(sender, NULL, haptic_name_owner_changed, info);
+ info->id_watch = dbus_handle_watch_name(sender, NULL, haptic_name_owner_changed, info);
return info;
}
{
assert(info);
- dbus_handle_unwatch_name(id_name_watch);
+ dbus_handle_unwatch_name(info->id_watch);
DD_LIST_REMOVE(haptic_handle_list, info);
DD_LIST_FREE_LIST(info->handle_list);