Remove const modifier from some APIs 98/325198/2
authorSangyoon Jang <jeremy.jang@samsung.com>
Wed, 4 Jun 2025 05:20:15 +0000 (14:20 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 5 Jun 2025 02:09:52 +0000 (02:09 +0000)
Change-Id: Idcdb28f650f8cf382dd26b998a9ee522f3cc536d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/api/action.h
src/api/api_stub.cc

index ec7ebefad45313ebb9ffb0fc40e5a21347fc7666..4920eb4114f4bf1922371631d2b245908c9ec21a 100644 (file)
@@ -128,7 +128,7 @@ int action_clone(action_h action, action_h *clone);
  * @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.
@@ -138,7 +138,7 @@ int action_get_name(action_h action, const char **name);
  * @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.
index 0ca7547f7efe2e493d0c4c33433287051144cb29..b94784159e9fa12fae3b3f314821bfd46330b8b2 100644 (file)
@@ -157,7 +157,7 @@ API int action_clone(action_h action, action_h* clone) {
   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;
@@ -169,7 +169,7 @@ API int action_get_name(action_h action, const char** name) {
   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;