return -1;
}
-static void _free_func_signal(gpointer data)
-{
- //_D("free signal subscribe");
-}
-
guint subscribe_dbus_signal(dbus_handle_h handle, const char *path,
const char *iface, const char *name,
GDBusSignalCallback cb, void *data,
_E("connection is null. check bus status");
return 0;
}
- return g_dbus_connection_signal_subscribe(dh->conn, NULL, iface, name, path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, cb, data, _free_func_signal);
+ return g_dbus_connection_signal_subscribe(dh->conn, NULL, iface, name, path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, cb, data, free_func);
}
void unsubscribe_dbus_signal(dbus_handle_h handle, guint id)