Browse Source

alter some minor details of the metadata API

tags/0.124.0
Paul Davis 11 years ago
parent
commit
bec4aa8b94
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      metadata.h

+ 8
- 3
metadata.h View File

@@ -100,15 +100,20 @@ jack_get_property(jack_uuid_t subject,
* A description of a subject (a set of properties). * A description of a subject (a set of properties).
*/ */
typedef struct { 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; } jack_description_t;


/** /**
* Free a description. * 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 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. * Get a description of @c subject.


Loading…
Cancel
Save