From: Jiung Yu Date: Wed, 2 Sep 2020 00:43:41 +0000 (+0000) Subject: Merge "Add CAPIs to control UWB network and location engine" into tizen X-Git-Tag: submit/tizen/20200902.020856^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.0_hotfix;p=platform%2Fcore%2Fapi%2Fuwb.git Merge "Add CAPIs to control UWB network and location engine" into tizen --- 7da5b4c3bd8fa49bed764e5a7706288185322585 diff --cc src/uwb.c index c4bf9ec,a4c91ac..8db9bf1 --- a/src/uwb.c +++ b/src/uwb.c @@@ -112,8 -115,46 +121,47 @@@ static void __position_changed(GObject if (uwb_ctx.position_changed_cb != NULL) uwb_ctx.position_changed_cb(node_id, x, y, z, uwb_ctx.position_changed_user_data); } +/* LCOV_EXCL_STOP */ + + static void __position_updated(GObject *source_object, + guint16 node_id, gint x, gint y, gint z) + { + _BEGIN(); + if (uwb_ctx.position_updated_cb != NULL) + uwb_ctx.position_updated_cb(node_id, x, y, z, uwb_ctx.position_updated_user_data); + } + + + static void __node_added(GObject *source_object, + gint pan_id, guint16 node_id, gint x, gint y, gint z) + { + _BEGIN(); + uwb_node_s remote_node = {node_id, pan_id, true, 0, x, y, z}; + if (uwb_ctx.node_added_cb != NULL) + uwb_ctx.node_added_cb(&remote_node, uwb_ctx.node_added_user_data); + } + + + static void __node_updated(GObject *source_object, + gint pan_id, guint16 node_id, gint x, gint y, gint z) + { + _BEGIN(); + uwb_node_s remote_node = {node_id, pan_id, true, 0, x, y, z}; + if (uwb_ctx.node_updated_cb != NULL) + uwb_ctx.node_updated_cb(&remote_node, uwb_ctx.node_updated_user_data); + } + + + static void __node_removed(GObject *source_object, + gint pan_id, guint16 node_id, gint x, gint y, gint z) + { + _BEGIN(); + uwb_node_s remote_node = {node_id, pan_id, true, 0, x, y, z}; + if (uwb_ctx.node_removed_cb != NULL) + uwb_ctx.node_removed_cb(&remote_node, uwb_ctx.node_removed_user_data); + } + static int manager_proxy_init(void) { GError *error = NULL;