/** \defgroup pw_link Link * * A link is the connection between 2 nodes (\ref pw_node). Nodes are * linked together on ports. * * The link is responsible for negotiating the format and buffers for * the nodes. *
*/
/** \enum pw_link_state The different link states */ enum pw_link_state {
PW_LINK_STATE_ERROR = -2, /**< the link is in error */
PW_LINK_STATE_UNLINKED = -1, /**< the link is unlinked */
PW_LINK_STATE_INIT = 0, /**< the link is initialized */
PW_LINK_STATE_NEGOTIATING = 1, /**< the link is negotiating formats */
PW_LINK_STATE_ALLOCATING = 2, /**< the link is allocating buffers */
PW_LINK_STATE_PAUSED = 3, /**< the link is paused */
PW_LINK_STATE_ACTIVE = 4, /**< the link is active */
};
/** Convert a \ref pw_link_state to a readable string */ constchar * pw_link_state_as_string(enum pw_link_state state); /** The link information. Extra information can be added in later versions */ struct pw_link_info {
uint32_t id; /**< id of the global */
uint32_t output_node_id; /**< server side output node id */
uint32_t output_port_id; /**< output port id */
uint32_t input_node_id; /**< server side input node id */
uint32_t input_port_id; /**< input port id */ #define PW_LINK_CHANGE_MASK_STATE (1 << 0) #define PW_LINK_CHANGE_MASK_FORMAT (1 << 1) #define PW_LINK_CHANGE_MASK_PROPS (1 << 2) #define PW_LINK_CHANGE_MASK_ALL ((1 << 3)-1)
uint64_t change_mask; /**< bitfield of changed fields since last call */ enum pw_link_state state; /**< the current state of the link */ constchar *error; /**< an error reason if \a state is error */ struct spa_pod *format; /**< format over link */ struct spa_dict *props; /**< the properties of the link */
};
/** Link events */ struct pw_link_events { #define PW_VERSION_LINK_EVENTS 0
uint32_t version; /** * Notify link info * * \param info info about the link
*/ void (*info) (void *data, conststruct pw_link_info *info);
};
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.