Merge "Add CAPIs to control UWB network and location engine" into tizen accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122330 accepted/tizen/6.0/unified/hotfix/20201103.004646 accepted/tizen/6.0/unified/hotfix/20201103.052127 accepted/tizen/unified/20200904.154125 submit/tizen/20200902.020856 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorJiung Yu <jiung.yu@samsung.com>
Wed, 2 Sep 2020 00:43:41 +0000 (00:43 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 2 Sep 2020 00:43:41 +0000 (00:43 +0000)
1  2 
packaging/capi-network-uwb.spec
src/uwb.c
tests/capi-network-uwb-test.c

Simple merge
diff --cc 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;
Simple merge