mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
defs: remove invalid direction
Anything not in the enum is invalid
This commit is contained in:
parent
1079d433ef
commit
b80fc0b08e
3 changed files with 4 additions and 6 deletions
|
|
@ -62,12 +62,12 @@ const char *
|
|||
pinos_direction_as_string (PinosDirection direction)
|
||||
{
|
||||
switch (direction) {
|
||||
case PINOS_DIRECTION_INVALID:
|
||||
return "invalid";
|
||||
case PINOS_DIRECTION_INPUT:
|
||||
return "input";
|
||||
case PINOS_DIRECTION_OUTPUT:
|
||||
return "output";
|
||||
default:
|
||||
return "invalid";
|
||||
}
|
||||
return "invalid-direction";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ const char * pinos_node_state_as_string (PinosNodeState state);
|
|||
* The direction of a port
|
||||
*/
|
||||
enum _PinosDirection {
|
||||
PINOS_DIRECTION_INVALID = SPA_DIRECTION_INVALID,
|
||||
PINOS_DIRECTION_INPUT = SPA_DIRECTION_INPUT,
|
||||
PINOS_DIRECTION_OUTPUT = SPA_DIRECTION_OUTPUT
|
||||
};
|
||||
|
|
|
|||
|
|
@ -84,9 +84,8 @@ typedef enum {
|
|||
#define SPA_RESULT_RETURN_ASYNC(seq) (SPA_RESULT_ASYNC | ((seq) & SPA_ASYNC_SEQ_MASK))
|
||||
|
||||
typedef enum {
|
||||
SPA_DIRECTION_INVALID = 0,
|
||||
SPA_DIRECTION_INPUT,
|
||||
SPA_DIRECTION_OUTPUT,
|
||||
SPA_DIRECTION_INPUT = 0,
|
||||
SPA_DIRECTION_OUTPUT = 1,
|
||||
} SpaDirection;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue