{
int ret = VCE_ERROR_NONE;
+ if (event < VCE_RESULT_EVENT_SUCCESS || event > VCE_RESULT_EVENT_ERROR) {
+ SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Invalid parameter");
+ return VCE_ERROR_INVALID_PARAMETER;
+ }
+
if (NULL == all_result || NULL == non_fixed_result || NULL == nlu_result) {
SLOG(LOG_ERROR, TAG_VCD, "[INFO] Input parameter is NULL. (no result)");
}
{
int ret = VCE_ERROR_NONE;
+ if (event < VCE_ASR_RESULT_EVENT_FINAL_RESULT || event > VCE_ASR_RESULT_EVENT_ERROR) {
+ SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Invalid parameter");
+ return VCE_ERROR_INVALID_PARAMETER;
+ }
+
if (NULL == asr_result) {
SLOG(LOG_ERROR, TAG_VCD, "[INFO] Input parameter is NULL. (no result)");
}
{
int ret = VCE_ERROR_NONE;
+ if (NULL == key || NULL == data) {
+ SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Invalid parameter");
+ return VCE_ERROR_INVALID_PARAMETER;
+ }
+
ret = vcd_set_private_data(key, data);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to set private data to vc manager");
{
int ret = VCE_ERROR_NONE;
+ if (NULL == key || NULL == data) {
+ SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Invalid parameter");
+ return VCE_ERROR_INVALID_PARAMETER;
+ }
+
ret = vcd_get_private_data(key, data);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[ERROR] Fail to get private data from vc manager");