* @retval #ACTION_ERROR_NONE Successful
* @retval #ACTION_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int action_get_name(action_h action, const char **name);
+int action_get_name(action_h action, char **name);
/**
* @brief Gets the schema of the action.
* @retval #ACTION_ERROR_NONE Successful
* @retval #ACTION_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int action_get_schema(action_h action, const char **json_schema);
+int action_get_schema(action_h action, char **json_schema);
/**
* @brief Destroys the action handle.
return ACTION_ERROR_NONE;
}
-API int action_get_name(action_h action, const char** name) {
+API int action_get_name(action_h action, char** name) {
if (action == nullptr || name == nullptr) {
LOG(WARNING) << "Invalid Parameter";
return ACTION_ERROR_INVALID_PARAMETER;
return ACTION_ERROR_NONE;
}
-API int action_get_schema(action_h action, const char** json_schema) {
+API int action_get_schema(action_h action, char** json_schema) {
if (action == nullptr || json_schema == nullptr) {
LOG(WARNING) << "Invalid Parameter";
return ACTION_ERROR_INVALID_PARAMETER;