[C-Api] Check feature before processing API
authorSangjung Woo <sangjung.woo@samsung.com>
Fri, 26 Jul 2019 05:00:54 +0000 (14:00 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 1 Aug 2019 09:50:29 +0000 (18:50 +0900)
commitef106edfcb9c98b3b21c9378287c443784feb13e
treeef35916955a9caf036dd42fe2c90e2760cd83225
parent8bc65624b44259af6a09dc43739d32ba7984d0e9
[C-Api] Check feature before processing API

This patch checks the machine_learning.inference feature before
processing API by calling ml_get_feature_enabled() function. In case of
Unit test, feature checking could be skipped by calling internal API,
ml_set_feature_status().

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
wip

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
api/capi/include/nnstreamer-capi-private.h
api/capi/meson.build
api/capi/src/nnstreamer-capi-pipeline.c
api/capi/src/nnstreamer-capi-single.c
api/capi/src/nnstreamer-capi-util.c
debian/rules
packaging/nnstreamer.spec
tests/tizen_capi/unittest_tizen_capi.cpp