Functions to serialize, unserialize, and summarize values of the type.
char* MyType_interprocessStringFromValue |
( |
const MyType |
value | ) |
|
json_object* MyType_jsonFromValue |
( |
const MyType |
value | ) |
|
Serializes a MyType
value to a JSON-C object.
This function is required.
- Parameters
-
value | The value to serialize. May be null. |
- Returns
- A JSON-C object. It should have the same format as the argument to
MyType_valueFromJson
.
char* MyType_summaryFromValue |
( |
const MyType |
value | ) |
|
Returns a brief description of a value.
This function is required.
- Parameters
-
value | The value to summarize. May be null. |
- Returns
- The summary. It should be heap-allocated; the caller is responsible for freeing it.
MyType MyType_valueFromJson |
( |
json_object * |
js | ) |
|
Creates a new MyType
value by unserializing a JSON-C object.
This function is required.
- Parameters
-
js | A JSON-C object from MyType_jsonFromValue , a constant port value defined in a composition, or a default port value defined in a node class implementation. |
- Returns
- The unserialized value. For heap-allocated types, this function should register the value with
vuoRegister
.