#include <stddef.h>
Go to the source code of this file.
◆ AttributeType
| Enumerator |
|---|
| ATTR_INT | |
| ATTR_DOUBLE | |
| ATTR_STRING | |
| ATTR_SET | |
| ATTR_UNKNOWN | |
◆ attribute_create()
Create a new Attribute.
- Parameters
-
| name | Name of the attribute (copied). |
| type | Type of the attribute (see AttributeType). |
| value | Pointer to the value (ownership is taken). |
- Returns
- Pointer to the new Attribute, or NULL on failure.
◆ attribute_destroy()
Destroy an Attribute and free its memory.
- Parameters
-
| attr | Pointer to the Attribute to destroy. Safe to pass NULL. |
◆ attribute_print()
| void attribute_print |
( |
const Attribute * |
attr | ) |
|