BRL-CAD
|
#include <avs.h>
Data Fields | |
uint32_t | magic |
size_t | count |
size_t | max |
void * | readonly_min |
void * | readonly_max |
struct bu_attribute_value_pair * | avp |
A variable-sized attribute-value-pair array.
avp points to an array of [max] slots. The interface routines will realloc to extend as needed.
In general, each of the names and values is a local copy made with bu_strdup(), and each string needs to be freed individually. However, if a name or value pointer is between readonly_min and readonly_max, then it is part of a big malloc block that is being freed by the caller, and should not be individually freed.
struct bu_attribute_value_pair* avp |