From 5b5f024bd3b62c34027b13339448452473886d81 Mon Sep 17 00:00:00 2001 From: Paulo Meira <10246101+PMeira@users.noreply.github.com> Date: Wed, 20 Mar 2024 04:28:11 -0300 Subject: [PATCH] Header: add missing const for a few function returns. --- include/dss_capi.h | 10 +++++----- include/dss_capi_ctx.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/dss_capi.h b/include/dss_capi.h index 0729cf606..a5d110170 100644 --- a/include/dss_capi.h +++ b/include/dss_capi.h @@ -6987,19 +6987,19 @@ extern "C" { /*! Edit String for RemoveBranches functions */ - DSS_CAPI_DLL char *ReduceCkt_Get_EditString(void); + DSS_CAPI_DLL const char* ReduceCkt_Get_EditString(void); DSS_CAPI_DLL void ReduceCkt_Set_EditString(const char* Value); /*! Start element for Remove Branch function */ - DSS_CAPI_DLL char *ReduceCkt_Get_StartPDElement(void); + DSS_CAPI_DLL const char* ReduceCkt_Get_StartPDElement(void); DSS_CAPI_DLL void ReduceCkt_Set_StartPDElement(const char* Value); /*! Name of EnergyMeter to use for reduction */ - DSS_CAPI_DLL char *ReduceCkt_Get_EnergyMeter(void); + DSS_CAPI_DLL const char* ReduceCkt_Get_EnergyMeter(void); DSS_CAPI_DLL void ReduceCkt_Set_EnergyMeter(const char* Value); /*! @@ -7140,7 +7140,7 @@ extern "C" { DSS_CAPI_DLL int32_t CNData_Get_Count(void); DSS_CAPI_DLL int32_t CNData_Get_First(void); DSS_CAPI_DLL int32_t CNData_Get_Next(void); - DSS_CAPI_DLL char *CNData_Get_Name(void); + DSS_CAPI_DLL const char* CNData_Get_Name(void); DSS_CAPI_DLL void CNData_Set_Name(const char* Value); DSS_CAPI_DLL void CNData_Get_AllNames(char*** ResultPtr, int32_t* ResultDims); DSS_CAPI_DLL void CNData_Get_AllNames_GR(void); @@ -7299,7 +7299,7 @@ extern "C" { DSS_CAPI_DLL int32_t TSData_Get_Count(void); DSS_CAPI_DLL int32_t TSData_Get_First(void); DSS_CAPI_DLL int32_t TSData_Get_Next(void); - DSS_CAPI_DLL char *TSData_Get_Name(void); + DSS_CAPI_DLL const char* TSData_Get_Name(void); DSS_CAPI_DLL void TSData_Set_Name(const char* Value); DSS_CAPI_DLL void TSData_Get_AllNames(char*** ResultPtr, int32_t* ResultDims); DSS_CAPI_DLL void TSData_Get_AllNames_GR(void); diff --git a/include/dss_capi_ctx.h b/include/dss_capi_ctx.h index b1159647c..f70e45c63 100644 --- a/include/dss_capi_ctx.h +++ b/include/dss_capi_ctx.h @@ -6404,19 +6404,19 @@ extern "C" { /*! Edit String for RemoveBranches functions */ - DSS_CAPI_DLL char *ctx_ReduceCkt_Get_EditString(const void* ctx); + DSS_CAPI_DLL const char* ctx_ReduceCkt_Get_EditString(const void* ctx); DSS_CAPI_DLL void ctx_ReduceCkt_Set_EditString(const void* ctx, const char* Value); /*! Start element for Remove Branch function */ - DSS_CAPI_DLL char *ctx_ReduceCkt_Get_StartPDElement(const void* ctx); + DSS_CAPI_DLL const char* ctx_ReduceCkt_Get_StartPDElement(const void* ctx); DSS_CAPI_DLL void ctx_ReduceCkt_Set_StartPDElement(const void* ctx, const char* Value); /*! Name of EnergyMeter to use for reduction */ - DSS_CAPI_DLL char *ctx_ReduceCkt_Get_EnergyMeter(const void* ctx); + DSS_CAPI_DLL const char* ctx_ReduceCkt_Get_EnergyMeter(const void* ctx); DSS_CAPI_DLL void ctx_ReduceCkt_Set_EnergyMeter(const void* ctx, const char* Value); /*! @@ -6557,7 +6557,7 @@ extern "C" { DSS_CAPI_DLL int32_t ctx_CNData_Get_Count(const void* ctx); DSS_CAPI_DLL int32_t ctx_CNData_Get_First(const void* ctx); DSS_CAPI_DLL int32_t ctx_CNData_Get_Next(const void* ctx); - DSS_CAPI_DLL char *ctx_CNData_Get_Name(const void* ctx); + DSS_CAPI_DLL const char* ctx_CNData_Get_Name(const void* ctx); DSS_CAPI_DLL void ctx_CNData_Set_Name(const void* ctx, const char* Value); DSS_CAPI_DLL void ctx_CNData_Get_AllNames(const void* ctx, char*** ResultPtr, int32_t* ResultDims); DSS_CAPI_DLL void ctx_CNData_Get_AllNames_GR(const void* ctx); @@ -6716,7 +6716,7 @@ extern "C" { DSS_CAPI_DLL int32_t ctx_TSData_Get_Count(const void* ctx); DSS_CAPI_DLL int32_t ctx_TSData_Get_First(const void* ctx); DSS_CAPI_DLL int32_t ctx_TSData_Get_Next(const void* ctx); - DSS_CAPI_DLL char *ctx_TSData_Get_Name(const void* ctx); + DSS_CAPI_DLL const char* ctx_TSData_Get_Name(const void* ctx); DSS_CAPI_DLL void ctx_TSData_Set_Name(const void* ctx, const char* Value); DSS_CAPI_DLL void ctx_TSData_Get_AllNames(const void* ctx, char*** ResultPtr, int32_t* ResultDims); DSS_CAPI_DLL void ctx_TSData_Get_AllNames_GR(const void* ctx);