alter some minor details of the metadata API

This commit is contained in:
Paul Davis 2013-10-01 15:44:51 -04:00
parent dae1fcdc51
commit bec4aa8b94
1 changed files with 8 additions and 3 deletions

View File

@ -100,15 +100,20 @@ jack_get_property(jack_uuid_t subject,
* A description of a subject (a set of properties).
*/
typedef struct {
jack_uuid_t subject; /**< The subject being described. */
jack_property_t* properties; /**< An array of properties. */
jack_uuid_t subject; /**< The subject being described. */
uint32_t property_cnt;/**< The number of properties stored in "properties" */
jack_property_t* properties; /**< An array of properties. */
uint32_t property_size; /**< private, don't use or touch */
} jack_description_t;
/**
* Free a description.
*
* @param desc a jack_description_t whose associated memory will all be released
* @param free_description_itself if non-zero, then @param desc will also be passed to free()
*/
void
jack_free_description(jack_description_t* desc);
jack_free_description(jack_description_t* desc, int free_description_itself);
/**
* Get a description of @c subject.