mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-22 06:59:59 -05:00
Handle error cases
Add a link state Add error quark Track the state of node we create and error when it is in error. Handle stream error states when negotiating Make the node error when a link is in error
This commit is contained in:
parent
6497c82a7d
commit
2bf322ee71
15 changed files with 422 additions and 71 deletions
|
|
@ -36,6 +36,18 @@
|
|||
#define PINOS_DBUS_OBJECT_NODE PINOS_DBUS_OBJECT_PREFIX "/node"
|
||||
#define PINOS_DBUS_OBJECT_LINK PINOS_DBUS_OBJECT_PREFIX "/link"
|
||||
|
||||
typedef enum {
|
||||
PINOS_ERROR_FAILED,
|
||||
PINOS_ERROR_FORMAT_NEGOTIATION,
|
||||
PINOS_ERROR_BUFFER_ALLOCATION,
|
||||
PINOS_ERROR_NODE_STATE,
|
||||
PINOS_ERROR_NODE_PORT,
|
||||
PINOS_ERROR_NODE_LINK,
|
||||
} PinosErrorEnum;
|
||||
|
||||
GQuark pinos_error_quark (void);
|
||||
#define PINOS_ERROR pinos_error_quark()
|
||||
|
||||
void pinos_init (int *argc, char **argv[]);
|
||||
|
||||
gchar *pinos_client_name (void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue