Skip to content

Commit

Permalink
fix(core): Fix UA_EXPORT annotations for UA_DataType handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Sep 11, 2024
1 parent 9b6848a commit 083e4e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/open62541/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ typedef struct UA_DataTypeArray {
* If the member is an array, the offset points to the (size_t) length field.
* (The array pointer comes after the length field without any padding.) */
#ifdef UA_ENABLE_TYPEDESCRIPTION
UA_Boolean
UA_Boolean UA_EXPORT
UA_DataType_getStructMember(const UA_DataType *type,
const char *memberName,
size_t *outOffset,
Expand All @@ -1078,12 +1078,12 @@ UA_DataType_getStructMember(const UA_DataType *type,
/* Test if the data type is a numeric builtin data type (via the typeKind field
* of UA_DataType). This includes integers and floating point numbers. Not
* included are Boolean, DateTime, StatusCode and Enums. */
UA_Boolean
UA_Boolean UA_EXPORT
UA_DataType_isNumeric(const UA_DataType *type);

/* Return the Data Type Precedence-Rank defined in Part 4.
* If there is no Precedence-Rank assigned with the type -1 is returned.*/
UA_Int16
UA_Int16 UA_EXPORT
UA_DataType_getPrecedence(const UA_DataType *type);

/**
Expand Down
4 changes: 2 additions & 2 deletions src/ua_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ UA_Array_append(void **p, size_t *size, void *newElem,
return UA_STATUSCODE_GOOD;
}

UA_StatusCode UA_EXPORT
UA_StatusCode
UA_Array_appendCopy(void **p, size_t *size, const void *newElem,
const UA_DataType *type) {
char scratch[512];
Expand Down Expand Up @@ -1882,7 +1882,7 @@ UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
}

#ifdef UA_ENABLE_TYPEDESCRIPTION
UA_Boolean UA_EXPORT
UA_Boolean
UA_DataType_getStructMember(const UA_DataType *type, const char *memberName,
size_t *outOffset, const UA_DataType **outMemberType,
UA_Boolean *outIsArray) {
Expand Down

0 comments on commit 083e4e9

Please sign in to comment.