[Common] function declaration
authorJaeyun <jy1210.jung@samsung.com>
Tue, 30 Jul 2019 03:56:57 +0000 (12:56 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 7 Aug 2019 07:21:28 +0000 (16:21 +0900)
fix link error about plugin api in cpp file.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_decoder.h
gst/nnstreamer/nnstreamer_plugin_api_filter.h

index 81364be..328557e 100644 (file)
 #include "tensor_typedef.h"
 #include <gst/gst.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * @brief Decoder definitions for different semantics of tensors
  *        This allows developers to create their own decoders.
@@ -82,4 +86,8 @@ nnstreamer_decoder_exit (const char *name);
 extern const GstTensorDecoderDef *
 nnstreamer_decoder_find (const char *name);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __NNS_PLUGIN_API_DECODER_H__ */
index e818f08..121b2a7 100644 (file)
 
 #include "tensor_typedef.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * @brief GstTensorFilter's properties for NN framework (internal data structure)
  *
@@ -162,4 +166,8 @@ nnstreamer_filter_exit (const char *name);
 extern const GstTensorFilterFramework *
 nnstreamer_filter_find (const char *name);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __NNS_PLUGIN_API_FILTER_H__ */