Commit f543c01f authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

gdh, some functinon args change from char* to const char*

parent 23616463
...@@ -2503,7 +2503,7 @@ pwr_tStatus gdh_RenameObject( ...@@ -2503,7 +2503,7 @@ pwr_tStatus gdh_RenameObject(
*/ */
pwr_tStatus gdh_SetObjectInfo( pwr_tStatus gdh_SetObjectInfo(
char* name, /**< The name of the object or object attribute.*/ const char* name, /**< The name of the object or object attribute.*/
void* bufp, /**< Pointer to the data. */ void* bufp, /**< Pointer to the data. */
unsigned int bufsize /**< The size in bytes of the data buffer. */ unsigned int bufsize /**< The size in bytes of the data buffer. */
) )
...@@ -2616,7 +2616,7 @@ pwr_tStatus gdh_SetObjectInfo( ...@@ -2616,7 +2616,7 @@ pwr_tStatus gdh_SetObjectInfo(
} }
if (gdh_log_cb && ODD(sts)) if (gdh_log_cb && ODD(sts))
gdh_log_cb(name, bufp, bufsize); gdh_log_cb((char *)name, bufp, bufsize);
if (ccpLocked) { if (ccpLocked) {
gdb_Lock; gdb_Lock;
...@@ -5411,7 +5411,7 @@ void gdh_GetStrDL(char* sp, /**< Direct link to string attribute */ ...@@ -5411,7 +5411,7 @@ void gdh_GetStrDL(char* sp, /**< Direct link to string attribute */
* lck_Create(&sts, lck_eLock_Str). * lck_Create(&sts, lck_eLock_Str).
*/ */
void gdh_SetStrDL(char* sp, /**< Direct link to string attribute */ void gdh_SetStrDL(char* sp, /**< Direct link to string attribute */
char* str, /**< String value to set */ const char* str, /**< String value to set */
int size /**< Size of string */ int size /**< Size of string */
) )
{ {
...@@ -5429,7 +5429,7 @@ void gdh_SetStrDL(char* sp, /**< Direct link to string attribute */ ...@@ -5429,7 +5429,7 @@ void gdh_SetStrDL(char* sp, /**< Direct link to string attribute */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_GetObjectInfoTime(char* name, /**< Attribute name */ pwr_tStatus gdh_GetObjectInfoTime(const char* name, /**< Attribute name */
pwr_tTime* time /**< Receives the requested time */ pwr_tTime* time /**< Receives the requested time */
) )
{ {
...@@ -5450,7 +5450,7 @@ pwr_tStatus gdh_GetObjectInfoTime(char* name, /**< Attribute name */ ...@@ -5450,7 +5450,7 @@ pwr_tStatus gdh_GetObjectInfoTime(char* name, /**< Attribute name */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_SetObjectInfoTime(char* name, /**< Attribute name */ pwr_tStatus gdh_SetObjectInfoTime(const char* name, /**< Attribute name */
pwr_tTime* time /**< Time to set */ pwr_tTime* time /**< Time to set */
) )
{ {
...@@ -5471,7 +5471,7 @@ pwr_tStatus gdh_SetObjectInfoTime(char* name, /**< Attribute name */ ...@@ -5471,7 +5471,7 @@ pwr_tStatus gdh_SetObjectInfoTime(char* name, /**< Attribute name */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_GetObjectInfoDeltaTime(char* name, /**< Attribute name */ pwr_tStatus gdh_GetObjectInfoDeltaTime(const char* name, /**< Attribute name */
pwr_tDeltaTime* time /**< Receives the requested time */ pwr_tDeltaTime* time /**< Receives the requested time */
) )
{ {
...@@ -5492,7 +5492,7 @@ pwr_tStatus gdh_GetObjectInfoDeltaTime(char* name, /**< Attribute name */ ...@@ -5492,7 +5492,7 @@ pwr_tStatus gdh_GetObjectInfoDeltaTime(char* name, /**< Attribute name */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_SetObjectInfoDeltaTime(char* name, /**< Attribute name */ pwr_tStatus gdh_SetObjectInfoDeltaTime(const char* name, /**< Attribute name */
pwr_tDeltaTime* time /**< Time to set */ pwr_tDeltaTime* time /**< Time to set */
) )
{ {
...@@ -5513,7 +5513,7 @@ pwr_tStatus gdh_SetObjectInfoDeltaTime(char* name, /**< Attribute name */ ...@@ -5513,7 +5513,7 @@ pwr_tStatus gdh_SetObjectInfoDeltaTime(char* name, /**< Attribute name */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_GetObjectInfoStr(char* name, /**< Attribute name */ pwr_tStatus gdh_GetObjectInfoStr(const char* name, /**< Attribute name */
char* str, /**< Receives the requested string */ char* str, /**< Receives the requested string */
int size /**< String size */ int size /**< String size */
) )
...@@ -5535,8 +5535,8 @@ pwr_tStatus gdh_GetObjectInfoStr(char* name, /**< Attribute name */ ...@@ -5535,8 +5535,8 @@ pwr_tStatus gdh_GetObjectInfoStr(char* name, /**< Attribute name */
* *
* @return pwr_tStatus * @return pwr_tStatus
*/ */
pwr_tStatus gdh_SetObjectInfoStr(char* name, /**< Attribute name */ pwr_tStatus gdh_SetObjectInfoStr(const char* name, /**< Attribute name */
char* str, /**< String to set */ const char* str, /**< String to set */
int size /**< String size */ int size /**< String size */
) )
{ {
......
...@@ -342,7 +342,7 @@ pwr_tStatus gdh_SetAlarmBlockLevel( ...@@ -342,7 +342,7 @@ pwr_tStatus gdh_SetAlarmBlockLevel(
pwr_tStatus gdh_SetAlarmLevel(pwr_tObjid object, pwr_tUInt32 alarmLevel); pwr_tStatus gdh_SetAlarmLevel(pwr_tObjid object, pwr_tUInt32 alarmLevel);
pwr_tStatus gdh_SetObjectInfo( pwr_tStatus gdh_SetObjectInfo(
char* attributeName, void* buffer, unsigned int sizeOfBuffer); const char* attributeName, void* buffer, unsigned int sizeOfBuffer);
pwr_tStatus gdh_SetObjectInfoAttrref( pwr_tStatus gdh_SetObjectInfoAttrref(
pwr_sAttrRef* attributeReference, void* buffer, unsigned int sizeOfBuffer); pwr_sAttrRef* attributeReference, void* buffer, unsigned int sizeOfBuffer);
...@@ -444,13 +444,13 @@ void gdh_SetTimeDL(pwr_tTime* atp, pwr_tTime* time); ...@@ -444,13 +444,13 @@ void gdh_SetTimeDL(pwr_tTime* atp, pwr_tTime* time);
void gdh_GetDeltaTimeDL(pwr_tDeltaTime* dtp, pwr_tDeltaTime* time); void gdh_GetDeltaTimeDL(pwr_tDeltaTime* dtp, pwr_tDeltaTime* time);
void gdh_SetDeltaTimeDL(pwr_tDeltaTime* dtp, pwr_tDeltaTime* time); void gdh_SetDeltaTimeDL(pwr_tDeltaTime* dtp, pwr_tDeltaTime* time);
void gdh_GetStrDL(char* sp, char* str, int size); void gdh_GetStrDL(char* sp, char* str, int size);
void gdh_SetStrDL(char* sp, char* str, int size); void gdh_SetStrDL(char* sp, const char* str, int size);
pwr_tStatus gdh_GetObjectInfoTime(char* name, pwr_tTime* time); pwr_tStatus gdh_GetObjectInfoTime(const char* name, pwr_tTime* time);
pwr_tStatus gdh_SetObjectInfoTime(char* name, pwr_tTime* time); pwr_tStatus gdh_SetObjectInfoTime(const char* name, pwr_tTime* time);
pwr_tStatus gdh_GetObjectInfoDeltaTime(char* name, pwr_tDeltaTime* time); pwr_tStatus gdh_GetObjectInfoDeltaTime(const char* name, pwr_tDeltaTime* time);
pwr_tStatus gdh_SetObjectInfoDeltaTime(char* name, pwr_tDeltaTime* time); pwr_tStatus gdh_SetObjectInfoDeltaTime(const char* name, pwr_tDeltaTime* time);
pwr_tStatus gdh_GetObjectInfoStr(char* name, char* str, int size); pwr_tStatus gdh_GetObjectInfoStr(const char* name, char* str, int size);
pwr_tStatus gdh_SetObjectInfoStr(char* name, char* str, int size); pwr_tStatus gdh_SetObjectInfoStr(const char* name, const char* str, int size);
/** @} */ /** @} */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment