From: Jaeyun Date: Tue, 20 Sep 2022 09:05:25 +0000 (+0900) Subject: [AITT] add aitt option X-Git-Tag: accepted/tizen/unified/20220921.091819^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd545b9fd3cf8e75a198eb2bf451cdde51e1588;p=platform%2Fupstream%2Fnnstreamer-edge.git [AITT] add aitt option Set AITT option to open AITT handle. Signed-off-by: Jaeyun --- diff --git a/src/libnnstreamer-edge/nnstreamer-edge-aitt.c b/src/libnnstreamer-edge/nnstreamer-edge-aitt.c index 5165470..410f6bb 100644 --- a/src/libnnstreamer-edge/nnstreamer-edge-aitt.c +++ b/src/libnnstreamer-edge/nnstreamer-edge-aitt.c @@ -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);