* operation, so simply ignore the return the value.
*/
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
- g_dbus_proxy_method_call(chrc->proxy, "StopNotify",
+ if (op)
+ g_dbus_proxy_method_call(chrc->proxy, "StopNotify",
stop_notify_setup, NULL, op, NULL);
+ else
+ g_dbus_proxy_method_call(chrc->proxy, "StopNotify",
+ NULL, NULL, NULL, NULL);
#else
g_dbus_proxy_method_call(chrc->proxy, "StopNotify", NULL,
NULL, NULL, NULL);
* value for now.
*/
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
- if (g_dbus_proxy_method_call(chrc->proxy, "StartNotify", start_notify_setup, NULL,
- op, NULL) == FALSE)
+ if (op) {
+ if (g_dbus_proxy_method_call(chrc->proxy, "StartNotify",
+ start_notify_setup, NULL, op, NULL) == FALSE)
+ return BT_ATT_ERROR_UNLIKELY;
+ }
+ else {
+ if (g_dbus_proxy_method_call(chrc->proxy, "StartNotify", NULL,
+ NULL, NULL, NULL) == FALSE)
+ return BT_ATT_ERROR_UNLIKELY;
+ }
#else
if (g_dbus_proxy_method_call(chrc->proxy, "StartNotify", NULL, NULL,
NULL, NULL) == FALSE)
-#endif
return BT_ATT_ERROR_UNLIKELY;
+#endif
__sync_fetch_and_add(&chrc->ntfy_cnt, 1);