Add function declaration and fix enum conversion.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
#include "nnstreamer-native.h"
+/* nnstreamer plugins and sub-plugins declaration */
+GST_PLUGIN_STATIC_DECLARE (nnstreamer);
+extern void init_filter_tflite (void);
+extern void init_dv (void);
+extern void init_bb (void);
+extern void init_il (void);
+extern void init_pose (void);
+
/**
* @brief Attach thread with Java VM.
*/
gst_element_state_get_name (new_state));
if (pipe_h->cb) {
- pipe_h->cb (new_state, pipe_h->pdata);
+ ml_pipeline_state_e ml_state = (ml_pipeline_state_e) new_state;
+ pipe_h->cb (ml_state, pipe_h->pdata);
}
}
break;
if (scret == GST_STATE_CHANGE_FAILURE)
return ML_ERROR_STREAMS_PIPE;
- *state = _state;
+ *state = (ml_pipeline_state_e) _state;
return ML_ERROR_NONE;
}
if (data == NULL) {
/** Search and register if found with the conf */
- const gchar *fullpath = nnsconf_get_fullpath (name, type);
+ nnsconf_type_path conf_type = (nnsconf_type_path) type;
+ const gchar *fullpath = nnsconf_get_fullpath (name, conf_type);
- if (!nnsconf_validate_file (type, fullpath))
+ if (!nnsconf_validate_file (conf_type, fullpath))
goto error; /* No Such Thing !!! */
G_UNLOCK (splock);