Schema for RecordV2.
More...
◆ diffusion_recordv2_schema_as_json_string()
Returns the schema in a JSON format.
- Parameters
-
recordv2_schema | the recordv2 schema. |
- Returns
- schema in JSON string format - must be freed after use. NULL if the recordv2_schema is NULL.
◆ diffusion_recordv2_schema_create_mutable_model()
Create a mutable model based upon the schema.
The model will be created with all mandatory record occurrences and all mandatory field occurrences initialized to default values. Such a model may be mutated and used to generate updated RecordV2 occurrences for updating purposes. diffusion_recordv2_mutable_record_model_free
should be called on this pointer when no longer needed.
- Parameters
-
recordv2_schema | the recordv2 schema |
- Returns
- a mutable recordv2 model. NULL if recordv2_schema is NULL.
◆ diffusion_recordv2_schema_free()
Free a recordv2 schema.
- Parameters
-
recordv2_schema | recordv2 schema to be freed |
◆ diffusion_recordv2_schema_get_records()
Returns an immutable, ordered list of record definitions.
There will be at least one.
- Parameters
-
recordv2_schema | the recordv2 schema |
- Returns
- a list of DIFFUSION_RECORDV2_SCHEMA_RECORD_Ts in the schema. NULL if the recordv2_schema is NULL.