Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Data Fields

The JSON node definition. More...

#include <openapi_syncdb.h>

Data Fields

char * data_name
 The unique identifier for this variable. More...
 
unsigned int data_offset
 Offset of this element from the beginning of the data buffer. More...
 
unsigned int data_size
 The size of this data element in bytes.
 
syncdbJsonDataType_e data_type
 
union {
   unsigned long long   default_number
 Default value for SYNCDB_JSON_NUMBER object. More...
 
   char *   default_string
 Default value for SYNCDB_JSON_STRING object.
 
val
 

Detailed Description

The JSON node definition.

Definition at line 269 of file openapi_syncdb.h.

Field Documentation

char* syncdbJsonNode_s::data_name

The unique identifier for this variable.

The data_name is used to match fields when performing version migration. All names within the element must be unique. A good policy is to use the fully qualified C field name, such as "element.key.k1" There is no limit on the size of the name field, other than the overall schema size limit.

Definition at line 280 of file openapi_syncdb.h.

unsigned int syncdbJsonNode_s::data_offset

Offset of this element from the beginning of the data buffer.

Note that if an element is a member of a structure within another structure then the offset of the nested structure needs to be added to the offset of the variable.

Definition at line 287 of file openapi_syncdb.h.

unsigned long long syncdbJsonNode_s::default_number

Default value for SYNCDB_JSON_NUMBER object.

Definition at line 294 of file openapi_syncdb.h.


The documentation for this struct was generated from the following file: