[AITT] add aitt option accepted/tizen/unified/20220921.091819 accepted/tizen/unified/20220925.234930 accepted/tizen/unified/20220925.234957 accepted/tizen/unified/20220926.025523
authorJaeyun <jy1210.jung@samsung.com>
Tue, 20 Sep 2022 09:05:25 +0000 (18:05 +0900)
committerSangjung Woo <again4you@gmail.com>
Tue, 20 Sep 2022 09:18:16 +0000 (18:18 +0900)
Set AITT option to open AITT handle.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
src/libnnstreamer-edge/nnstreamer-edge-aitt.c

index 5165470c2498d5fa5ae8ff47d024333d646e4bc6..410f6bb81ba6558a9c1c985a4aafe2be230a3081 100644 (file)
@@ -43,6 +43,7 @@ nns_edge_aitt_connect (nns_edge_h edge_h)
 {
   nns_edge_handle_s *eh;
   nns_edge_aitt_handle_s *ah;
+  aitt_option_h option;
 
   eh = (nns_edge_handle_s *) edge_h;
 
@@ -59,7 +60,12 @@ nns_edge_aitt_connect (nns_edge_h edge_h)
     return NNS_EDGE_ERROR_OUT_OF_MEMORY;
   }
 
-  ah->aitt_h = aitt_new (eh->id, eh->host);
+  option = aitt_option_new ();
+  aitt_option_set (option, AITT_OPT_MY_IP, eh->host);
+
+  ah->aitt_h = aitt_new (eh->id, option);
+  aitt_option_destroy (option);
+
   if (!ah->aitt_h) {
     nns_edge_loge ("Failed to create AITT handle. AITT internal error.");
     SAFE_FREE (ah);