use dictionary for extra port info

This commit is contained in:
Wim Taymans 2016-10-14 10:42:02 +02:00
parent d79489b29b
commit becae3e7fa
9 changed files with 14 additions and 13 deletions

View file

@ -28,6 +28,7 @@ typedef struct _SpaAllocParam SpaAllocParam;
#include <spa/defs.h>
#include <spa/buffer.h>
#include <spa/dict.h>
#define SPA_ALLOC_PARAM_URI "http://spaplug.in/ns/alloc-param"
#define SPA_ALLOC_PARAM_PREFIX SPA_ALLOC_PARAM_URI "#"
@ -110,7 +111,7 @@ typedef enum {
* @latency: latency on this port in nanoseconds
* @params: extra allocation parameters
* @n_params: number of elements in @params;
* @features: NULL terminated array of extra port features
* @extra: a dictionary of extra port info
*
*/
typedef struct {
@ -119,7 +120,7 @@ typedef struct {
uint64_t latency;
SpaAllocParam **params;
unsigned int n_params;
const char **features;
SpaDict *extra;
} SpaPortInfo;

View file

@ -136,7 +136,7 @@ typedef struct {
* @range_type: type of the range values
* @n_range_values: number of elements in @range_values
* @range_values: array of possible values
* @info: extra info
* @extra: extra info
*/
typedef struct {
uint32_t id;
@ -148,7 +148,7 @@ typedef struct {
SpaPropRangeType range_type;
unsigned int n_range_values;
const SpaPropRangeInfo *range_values;
SpaDict *info;
SpaDict *extra;
} SpaPropInfo;
/**