Adds a path and value to a Write Operation, as a request to change a multiple-instance resource's instance to the specified value.
More...
|
AwaError | AwaServerWriteOperation_AddArrayValueAsCString (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, const char *value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsInteger (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaInteger value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsFloat (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaFloat value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsBoolean (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaBoolean value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsTime (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaTime value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsOpaque (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaOpaque value) |
|
AwaError | AwaServerWriteOperation_AddArrayValueAsObjectLink (AwaServerWriteOperation *operation, const char *path, int resourceInstanceID, AwaObjectLink value) |
|
Adds a path and value to a Write Operation, as a request to change a multiple-instance resource's instance to the specified value.
This allows a Write Operation to modify a single instance of a multiple-instance resource, leaving all other instances unmodified. Only values with the same type as the array resource specified by the path can be added.
- Parameters
-
[in] | operation | The Write Operation to add the path and value to. |
[in] | path | The path of the resource requested for change. |
[in] | resourceInstanceID | The resource instance ID to change. |
[in] | value | The new value of the resource instance. |
- Returns
- AwaError_Success on success.
-
AwaError_OperationInvalid if the operation is invalid.
-
AwaError_PathInvalid if the specified path is invalid.
-
AwaError_TypeMismatch if the specified path refers to a resource with a non-corresponding type.
-
AwaError_NotDefined if the specified path refers to an object or resource that is not defined.
-
AwaError_AddInvalid if the specified resource instance ID is outside of the valid range.
AwaError AwaServerWriteOperation_AddArrayValueAsCString |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
const char * |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsInteger |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaInteger |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsFloat |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaFloat |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsBoolean |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaBoolean |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsTime |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaTime |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsOpaque |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaOpaque |
value |
|
) |
| |
AwaError AwaServerWriteOperation_AddArrayValueAsObjectLink |
( |
AwaServerWriteOperation * |
operation, |
|
|
const char * |
path, |
|
|
int |
resourceInstanceID, |
|
|
AwaObjectLink |
value |
|
) |
| |