891 #endif // AWA_COMMON_H struct _AwaOpaqueArrayIterator AwaOpaqueArrayIterator
Definition: common.h:110
AwaError
API Error Codes.
Definition: error.h:38
AwaOpaqueArray * AwaOpaqueArray_New(void)
struct _AwaPathResult AwaPathResult
Definition: common.h:710
AwaResourceType AwaResourceDefinition_GetType(const AwaResourceDefinition *resourceDefinition)
Retrieve the resource type of a Resource Definition.
void AwaObjectLinkArrayIterator_Free(AwaObjectLinkArrayIterator **iterator)
AwaObjectID AwaObjectDefinition_GetID(const AwaObjectDefinition *objectDefinition)
Retrieve the unique ID of an Object Definition.
bool AwaTimeArray_IsValid(const AwaTimeArray *array, AwaArrayIndex index)
struct _AwaBooleanArrayIterator AwaBooleanArrayIterator
Definition: common.h:109
Provides definitions for types and enums used by Awa LWM2M API and Static API.
AwaError AwaObjectDefinition_AddResourceDefinitionAsFloatArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaFloatArray *defaultArray)
void AwaIntegerArray_SetValue(AwaIntegerArray *array, AwaArrayIndex index, AwaInteger value)
void AwaObjectDefinition_Free(AwaObjectDefinition **objectDefinition)
Clean up an Object Definition, freeing all allocated resources.
AwaError AwaChangeSet_GetValueAsObjectLink(const AwaChangeSet *changeSet, const char *path, AwaObjectLink *value)
Retrieve an object link resource's value from a ChangeSet.
AwaBooleanArrayIterator * AwaBooleanArray_NewBooleanArrayIterator(const AwaBooleanArray *array)
AwaError AwaAPI_MakeObjectPath(char *path, size_t pathSize, AwaObjectID objectID)
Construct a path from an object ID.
AwaError AwaObjectDefinition_AddResourceDefinitionAsTimeArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaTimeArray *defaultArray)
int AwaTimeout
Represents a timeout value, in milliseconds.
Definition: common.h:70
AwaBooleanArray * AwaBooleanArray_New(void)
AwaError AwaAPI_MakeResourcePath(char *path, size_t pathSize, AwaObjectID objectID, AwaObjectInstanceID objectInstanceID, AwaResourceID resourceID)
Construct a path from an object, object instance, and resource ID.
AwaError AwaObjectDefinition_AddResourceDefinitionAsObjectLinkArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaObjectLinkArray *defaultArray)
AwaInteger AwaIntegerArrayIterator_GetValue(const AwaIntegerArrayIterator *iterator)
struct _AwaBooleanArray AwaBooleanArray
Definition: common.h:100
bool AwaOpaqueArray_IsValid(const AwaOpaqueArray *array, AwaArrayIndex index)
AwaError AwaObjectDefinition_AddResourceDefinitionAsInteger(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaInteger defaultValue)
void AwaTimeArrayIterator_Free(AwaTimeArrayIterator **iterator)
size_t AwaOpaqueArray_GetValueCount(const AwaOpaqueArray *array)
bool AwaIntegerArrayIterator_Next(AwaIntegerArrayIterator *iterator)
AwaCStringArrayIterator * AwaStringArray_NewCStringArrayIterator(const AwaStringArray *array)
indicates a resource was modified on the specified path
Definition: common.h:56
bool AwaOpaqueArrayIterator_Next(AwaOpaqueArrayIterator *iterator)
struct _AwaIntegerArray AwaIntegerArray
Definition: common.h:98
void AwaOpaqueArray_DeleteValue(AwaOpaqueArray *array, AwaArrayIndex index)
const char * AwaPathIterator_Get(const AwaPathIterator *iterator)
Retrieve the current path from a Path Iterator.
const char * AwaObjectDefinition_GetName(const AwaObjectDefinition *objectDefinition)
Retrieve the name of an Object Definition.
indicates a resource was created on the specified path
Definition: common.h:55
AwaFloat AwaFloatArrayIterator_GetValue(const AwaFloatArrayIterator *iterator)
size_t AwaArrayLength
Represents a multiple-instance array length value.
Definition: common.h:94
AwaError AwaObjectDefinition_AddResourceDefinitionAsOpaque(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaOpaque defaultValue)
bool AwaResourceDefinition_IsMandatory(const AwaResourceDefinition *resourceDefinition)
Determine whether or not a Resource Definition is mandatory.
AwaError AwaChangeSet_GetValueAsOpaque(const AwaChangeSet *changeSet, const char *path, AwaOpaque *value)
Retrieve an opaque resource's value from a ChangeSet.
AwaBoolean AwaBooleanArrayIterator_GetValue(const AwaBooleanArrayIterator *iterator)
struct _AwaFloatArray AwaFloatArray
Definition: common.h:99
A utility struct used to convey object link data.
Definition: types.h:90
bool AwaPathIterator_Next(AwaPathIterator *iterator)
Determine whether the Path Iterator has not reached the end of a set of paths.
AwaArrayIndex AwaIntegerArrayIterator_GetIndex(const AwaIntegerArrayIterator *iterator)
AwaOpaque AwaOpaqueArrayIterator_GetValue(const AwaOpaqueArrayIterator *iterator)
size_t AwaObjectLinkArray_GetValueCount(const AwaObjectLinkArray *array)
const char * AwaResourceDefinition_GetName(const AwaResourceDefinition *resourceDefinition)
Retrieve the name of a Resource Definition.
AwaError AwaObjectDefinition_AddResourceDefinitionAsFloat(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaFloat defaultValue)
AwaArrayIndex AwaOpaqueArrayIterator_GetIndex(const AwaOpaqueArrayIterator *iterator)
struct _AwaOpaqueArray AwaOpaqueArray
Definition: common.h:101
AwaInteger AwaIntegerArray_GetValue(const AwaIntegerArray *array, AwaArrayIndex index)
AwaError AwaChangeSet_GetValuesAsBooleanArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaBooleanArray **valueArray)
indicates an object instance was created on the specified path
Definition: common.h:59
indicates a resource was deleted on the specified path
Definition: common.h:57
indicates an object instance was deleted on the specified path
Definition: common.h:61
AwaLogLevel AwaLog_SetLevel(AwaLogLevel level)
Set the current API log level.
struct _AwaIntegerArrayIterator AwaIntegerArrayIterator
Definition: common.h:107
bool AwaStringArray_IsValid(const AwaStringArray *array, AwaArrayIndex index)
AwaError AwaChangeSet_GetValueAsCStringPointer(const AwaChangeSet *changeSet, const char *path, const char **value)
void AwaIntegerArray_Free(AwaIntegerArray **array)
AwaArrayIndex AwaFloatArrayIterator_GetIndex(const AwaFloatArrayIterator *iterator)
bool AwaBoolean
Corresponds to the LWM2M Boolean type.
Definition: types.h:71
void AwaObjectDefinitionIterator_Free(AwaObjectDefinitionIterator **iterator)
Clean up an Object Definition iterator, freeing all allocated resources.
AwaError AwaObjectDefinition_AddResourceDefinitionAsObjectLink(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaObjectLink defaultValue)
void AwaIntegerArray_DeleteValue(AwaIntegerArray *array, AwaArrayIndex index)
AwaTime AwaTimeArray_GetValue(const AwaTimeArray *array, AwaArrayIndex index)
AwaTime AwaTimeArrayIterator_GetValue(const AwaTimeArrayIterator *iterator)
AwaObjectLinkArrayIterator * AwaObjectLinkArray_NewObjectLinkArrayIterator(const AwaObjectLinkArray *array)
bool AwaObjectDefinition_IsResourceDefined(const AwaObjectDefinition *objectDefinition, AwaResourceID resourceID)
Determine whether a Resource Definition exists within an Object Definition for the specified ID...
void AwaObjectLinkArray_DeleteValue(AwaObjectLinkArray *array, AwaArrayIndex index)
void AwaBooleanArrayIterator_Free(AwaBooleanArrayIterator **iterator)
AwaFloatArray * AwaFloatArray_New(void)
void AwaFloatArray_DeleteValue(AwaFloatArray *array, AwaArrayIndex index)
Provides definitions for Awa LWM2M Client and Server API error codes and error function declarations...
AwaError AwaAPI_MakeObjectInstancePath(char *path, size_t pathSize, AwaObjectID objectID, AwaObjectInstanceID objectInstanceID)
Construct a path from an object and object instance ID.
void AwaFloatArray_Free(AwaFloatArray **array)
AwaError AwaChangeSet_GetValuesAsTimeArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaTimeArray **valueArray)
void AwaTimeArray_Free(AwaTimeArray **array)
void AwaBooleanArray_SetValue(AwaBooleanArray *array, AwaArrayIndex index, AwaBoolean value)
AwaError AwaPathResult_GetError(const AwaPathResult *result)
Retrieve an error from a Path Result.
A utility struct used to convey data pointer and size of an opaque data block.
Definition: types.h:81
bool AwaBooleanArray_IsValid(const AwaBooleanArray *array, AwaArrayIndex index)
void AwaCStringArrayIterator_Free(AwaCStringArrayIterator **iterator)
void AwaStringArray_DeleteValue(AwaStringArray *array, AwaArrayIndex index)
const char * AwaStringArray_GetValueAsCString(const AwaStringArray *array, AwaArrayIndex index)
AwaResourceType AwaChangeSet_GetResourceType(const AwaChangeSet *changeSet, const char *path)
Get the resource type for the specified change.
AwaError AwaChangeSet_GetValueAsObjectLinkPointer(const AwaChangeSet *changeSet, const char *path, const AwaObjectLink **value)
AwaObjectLinkArray * AwaObjectLinkArray_New(void)
void AwaResourceDefinitionIterator_Free(AwaResourceDefinitionIterator **iterator)
Clean up an Resource Definition iterator, freeing all allocated resources.
struct _AwaTimeArray AwaTimeArray
Definition: common.h:102
AwaStringArray * AwaStringArray_New(void)
int AwaObjectInstanceID
Definition: types.h:44
size_t AwaArrayIndex
Represents a multiple-instance array index value.
Definition: common.h:89
struct _AwaTimeArrayIterator AwaTimeArrayIterator
Definition: common.h:111
AwaError AwaObjectDefinition_AddResourceDefinitionAsOpaqueArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaOpaqueArray *defaultArray)
AwaChangeType
Supported change types for a change subscription.
Definition: common.h:51
bool AwaObjectLinkArrayIterator_Next(AwaObjectLinkArrayIterator *iterator)
struct _AwaChangeSet AwaChangeSet
Definition: common.h:734
struct _AwaResourceDefinitionIterator AwaResourceDefinitionIterator
Definition: common.h:349
AwaResourceOperations
Supported resource operations for management servers.
Definition: types.h:133
bool AwaBooleanArrayIterator_Next(AwaBooleanArrayIterator *iterator)
AwaArrayIndex AwaBooleanArrayIterator_GetIndex(const AwaBooleanArrayIterator *iterator)
bool AwaChangeSet_HasValue(const AwaChangeSet *changeSet, const char *path)
Test if the ChangeSet has a value for the specified resource path.
void AwaBooleanArray_Free(AwaBooleanArray **array)
void AwaStringArray_Free(AwaStringArray **array)
AwaError AwaChangeSet_GetValuesAsOpaqueArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaOpaqueArray **valueArray)
AwaIntegerArray * AwaIntegerArray_New(void)
size_t AwaStringArray_GetValueCount(const AwaStringArray *array)
AwaChangeType AwaChangeSet_GetChangeType(const AwaChangeSet *changeSet, const char *path)
Retrieve the change type for a specified path in a ChangeSet.
const char * AwaCStringArrayIterator_GetValueAsCString(const AwaCStringArrayIterator *iterator)
size_t AwaIntegerArray_GetValueCount(const AwaIntegerArray *array)
bool AwaResourceDefinitionIterator_Next(AwaResourceDefinitionIterator *iterator)
Determine whether the Resource Definition iterator has not reached the end of a set of Resource Defin...
AwaTimeArray * AwaTimeArray_New(void)
AwaError AwaObjectDefinition_AddResourceDefinitionAsBoolean(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaBoolean defaultValue)
AwaFloat AwaFloatArray_GetValue(const AwaFloatArray *array, AwaArrayIndex index)
struct _AwaObjectDefinitionIterator AwaObjectDefinitionIterator
Definition: common.h:348
AwaError AwaChangeSet_GetValuesAsObjectLinkArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaObjectLinkArray **valueArray)
AwaIntegerArrayIterator * AwaIntegerArray_NewIntegerArrayIterator(const AwaIntegerArray *array)
AwaObjectDefinition * AwaObjectDefinition_New(AwaObjectID objectID, const char *objectName, int minimumInstances, int maximumInstances)
Define object metadata against an Object ID.
AwaError AwaObjectDefinition_AddResourceDefinitionAsBooleanArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaBooleanArray *defaultArray)
AwaResourceDefinitionIterator * AwaObjectDefinition_NewResourceDefinitionIterator(const AwaObjectDefinition *objectDefinition)
Retrieves a new Resource Definition iterator that can be used to iterate through the set of defined r...
void AwaOpaqueArray_Free(AwaOpaqueArray **array)
AwaError AwaChangeSet_GetValuesAsStringArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaStringArray **valueArray)
AwaError AwaChangeSet_GetValuesAsIntegerArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaIntegerArray **valueArray)
size_t AwaBooleanArray_GetValueCount(const AwaBooleanArray *array)
AwaPathIterator * AwaChangeSet_NewPathIterator(const AwaChangeSet *changeSet)
Create a new Path Iterator for a ChangeSet, used to iterate through the list of resource paths retrie...
void AwaBooleanArray_DeleteValue(AwaBooleanArray *array, AwaArrayIndex index)
indicates an object instance was modified on the specified path
Definition: common.h:60
void AwaPathIterator_Free(AwaPathIterator **iterator)
Clean up a Path Iterator, freeing all allocated resources.
TODO: indicates the current value of an object instance or resource on the specified path on subscrip...
Definition: common.h:63
void AwaObjectLinkArray_Free(AwaObjectLinkArray **array)
size_t AwaTimeArray_GetValueCount(const AwaTimeArray *array)
int AwaResourceDefinition_GetMinimumInstances(const AwaResourceDefinition *resourceDefinition)
Retrieve the minimum number of instances which can be created for an Resource Definition.
AwaError AwaChangeSet_GetValueAsTimePointer(const AwaChangeSet *changeSet, const char *path, const AwaTime **value)
AwaOpaque AwaExecuteArguments
Definition: common.h:703
void AwaFloatArray_SetValue(AwaFloatArray *array, AwaArrayIndex index, AwaFloat value)
double AwaFloat
Corresponds to the LWM2M Float type.
Definition: types.h:66
AwaOpaque AwaOpaqueArray_GetValue(const AwaOpaqueArray *array, AwaArrayIndex index)
AwaBoolean AwaBooleanArray_GetValue(const AwaBooleanArray *array, AwaArrayIndex index)
int AwaObjectDefinition_GetMinimumInstances(const AwaObjectDefinition *objectDefinition)
Retrieve the minimum number of instances which can be created for an Object Definition.
struct _ObjectDefinition AwaObjectDefinition
Definition: common.h:346
AwaObjectLink AwaObjectLinkArrayIterator_GetValue(const AwaObjectLinkArrayIterator *iterator)
void AwaStringArray_SetValueAsCString(AwaStringArray *array, AwaArrayIndex index, const char *value)
struct _AwaStringArray AwaStringArray
Definition: common.h:97
int AwaObjectID
Definition: types.h:43
int AwaResourceDefinition_GetMaximumInstances(const AwaResourceDefinition *resourceDefinition)
Retrieve the maximum number of instances which can be created for an Resource Definition.
AwaError AwaObjectDefinition_AddResourceDefinitionAsNoType(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations)
Add a Resource Definition to an existing Object Definition.
bool AwaTimeArrayIterator_Next(AwaTimeArrayIterator *iterator)
const AwaObjectDefinition * AwaObjectDefinitionIterator_Get(const AwaObjectDefinitionIterator *iterator)
Retrieve the current Object Definition from an Object Definition iterator.
AwaOpaqueArrayIterator * AwaOpaqueArray_NewOpaqueArrayIterator(const AwaOpaqueArray *array)
AwaArrayIndex AwaTimeArrayIterator_GetIndex(const AwaTimeArrayIterator *iterator)
AwaError AwaObjectDefinition_AddResourceDefinitionAsTime(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, AwaTime defaultValue)
void AwaOpaqueArray_SetValue(AwaOpaqueArray *array, AwaArrayIndex index, AwaOpaque value)
struct _AwaCStringArrayIterator AwaCStringArrayIterator
Definition: common.h:106
AwaLogLevel
Supported log levels for a log command.
Definition: types.h:150
void AwaObjectLinkArray_SetValue(AwaObjectLinkArray *array, AwaArrayIndex index, AwaObjectLink value)
int AwaResourceID
Definition: types.h:45
AwaResourceOperations AwaResourceDefinition_GetSupportedOperations(const AwaResourceDefinition *resourceDefinition)
Retrieve the supported operations for an Resource Definition.
AwaTimeArrayIterator * AwaTimeArray_NewTimeArrayIterator(const AwaTimeArray *array)
bool AwaCStringArrayIterator_Next(AwaCStringArrayIterator *iterator)
indicates an invalid change type for the specified path
Definition: common.h:53
bool AwaAPI_IsPathValid(const char *path)
Check if a path string conforms to the valid path syntax.
bool AwaIntegerArray_IsValid(const AwaIntegerArray *array, AwaArrayIndex index)
AwaSubscribeType
Supported subscribe types.
Definition: common.h:75
bool AwaFloatArrayIterator_Next(AwaFloatArrayIterator *iterator)
AwaError AwaChangeSet_GetValueAsIntegerPointer(const AwaChangeSet *changeSet, const char *path, const AwaInteger **value)
AwaObjectLink AwaObjectLinkArray_GetValue(const AwaObjectLinkArray *array, AwaArrayIndex index)
const AwaResourceDefinition * AwaObjectDefinition_GetResourceDefinition(const AwaObjectDefinition *objectDefinition, AwaResourceID resourceID)
Retrieve a Resource Definition from an Object Definition using a resource ID.
bool AwaObjectLinkArray_IsValid(const AwaObjectLinkArray *array, AwaArrayIndex index)
int64_t AwaInteger
Corresponds to the LWM2M 64-bit Integer type.
Definition: types.h:61
AwaError AwaObjectDefinition_AddResourceDefinitionAsIntegerArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaIntegerArray *defaultArray)
bool AwaChangeSet_ContainsPath(const AwaChangeSet *changeSet, const char *path)
Test if the ChangeSet has the specified path (resource, object instance or object) present...
struct _AwaObjectLinkArray AwaObjectLinkArray
Definition: common.h:103
size_t AwaFloatArray_GetValueCount(const AwaFloatArray *array)
void AwaTimeArray_DeleteValue(AwaTimeArray *array, AwaArrayIndex index)
bool AwaObjectDefinitionIterator_Next(AwaObjectDefinitionIterator *iterator)
Determine whether the Object Definition iterator has not reached the end of a set of Object Definitio...
AwaResourceType
Supported resource types.
Definition: types.h:101
AwaError AwaChangeSet_GetValueAsOpaquePointer(const AwaChangeSet *changeSet, const char *path, const AwaOpaque **value)
AwaError AwaObjectDefinition_AddResourceDefinitionAsStringArray(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, int minimumInstances, int maximumInstances, AwaResourceOperations operations, const AwaStringArray *defaultArray)
const AwaResourceDefinition * AwaResourceDefinitionIterator_Get(const AwaResourceDefinitionIterator *iterator)
Retrieve the current Resource Definition from an Resource Definition iterator.
AwaArrayIndex AwaCStringArrayIterator_GetIndex(const AwaCStringArrayIterator *iterator)
AwaLWM2MError AwaPathResult_GetLWM2MError(const AwaPathResult *result)
Retrieve a LWM2M error from a Path Result.
void AwaTimeArray_SetValue(AwaTimeArray *array, AwaArrayIndex index, AwaTime value)
AwaResourceID AwaResourceDefinition_GetID(const AwaResourceDefinition *resourceDefinition)
Retrieve the unique ID of a Resource Definition.
int64_t AwaTime
Corresponds to the LWM2M Time type.
Definition: types.h:76
AwaError AwaChangeSet_GetValueAsFloatPointer(const AwaChangeSet *changeSet, const char *path, const AwaFloat **value)
struct _AwaFloatArrayIterator AwaFloatArrayIterator
Definition: common.h:108
struct _AwaObjectLinkArrayIterator AwaObjectLinkArrayIterator
Definition: common.h:112
AwaArrayIndex AwaObjectLinkArrayIterator_GetIndex(const AwaObjectLinkArrayIterator *iterator)
AwaFloatArrayIterator * AwaFloatArray_NewFloatArrayIterator(const AwaFloatArray *array)
AwaError AwaChangeSet_GetValuesAsFloatArrayPointer(const AwaChangeSet *changeSet, const char *path, const AwaFloatArray **valueArray)
AwaError AwaChangeSet_GetValueAsBooleanPointer(const AwaChangeSet *changeSet, const char *path, const AwaBoolean **value)
void AwaFloatArrayIterator_Free(AwaFloatArrayIterator **iterator)
struct _AwaPathIterator AwaPathIterator
Definition: common.h:617
bool AwaFloatArray_IsValid(const AwaFloatArray *array, AwaArrayIndex index)
AwaLWM2MError
Definition: error.h:93
void AwaIntegerArrayIterator_Free(AwaIntegerArrayIterator **iterator)
AwaError AwaAPI_MakePath(char *path, size_t pathSize, AwaObjectID objectID, AwaObjectInstanceID objectInstanceID, AwaResourceID resourceID)
Construct a path from an object, object instance, and resource ID.
AwaError AwaObjectDefinition_AddResourceDefinitionAsString(AwaObjectDefinition *objectDefinition, AwaResourceID resourceID, const char *resourceName, bool isMandatory, AwaResourceOperations operations, const char *defaultValue)
int AwaObjectDefinition_GetMaximumInstances(const AwaObjectDefinition *objectDefinition)
Retrieve the maximum number of instances which can be created for an Object Definition.
void AwaOpaqueArrayIterator_Free(AwaOpaqueArrayIterator **iterator)
struct _ResourceDefinition AwaResourceDefinition
Definition: common.h:347