/** The direction of a port */ #define pw_direction spa_direction #define PW_DIRECTION_INPUT SPA_DIRECTION_INPUT #define PW_DIRECTION_OUTPUT SPA_DIRECTION_OUTPUT
/** Convert a \ref pw_direction to a readable string */ constchar * pw_direction_as_string(enum pw_direction direction);
struct pw_port_info {
uint32_t id; /**< id of the global */ enum pw_direction direction; /**< port direction */ #define PW_PORT_CHANGE_MASK_PROPS (1 << 0) #define PW_PORT_CHANGE_MASK_PARAMS (1 << 1) #define PW_PORT_CHANGE_MASK_ALL ((1 << 2)-1)
uint64_t change_mask; /**< bitfield of changed fields since last call */ struct spa_dict *props; /**< the properties of the port */ struct spa_param_info *params; /**< parameters */
uint32_t n_params; /**< number of items in \a params */
};
/** Port events */ struct pw_port_events { #define PW_VERSION_PORT_EVENTS 0
uint32_t version; /** * Notify port info * * \param info info about the port
*/ void (*info) (void *data, conststruct pw_port_info *info); /** * Notify a port param * * Event emitted as a result of the enum_params method. * * \param seq the sequence number of the request * \param id the param id * \param index the param index * \param next the param index of the next param * \param param the parameter
*/ void (*param) (void *data, int seq,
uint32_t id, uint32_t index, uint32_t next, conststruct spa_pod *param);
};
int (*add_listener) (void *object, struct spa_hook *listener, conststruct pw_port_events *events, void *data); /** * Subscribe to parameter changes * * Automatically emit param events for the given ids when * they are changed. * * \param ids an array of param ids * \param n_ids the number of ids in \a ids
*/ int (*subscribe_params) (void *object, uint32_t *ids, uint32_t n_ids);
/** * Enumerate port parameters * * Start enumeration of port parameters. For each param, a * param event will be emitted. * * \param seq a sequence number returned in the reply * \param id the parameter id to enumerate * \param start the start index or 0 for the first param * \param num the maximum number of params to retrieve * \param filter a param filter or NULL
*/ int (*enum_params) (void *object, int seq,
uint32_t id, uint32_t start, uint32_t num, conststruct spa_pod *filter);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.