I found pa_direction_valid() and pa_direction_to_string() useful in the Tizen volume API work, and I thought they might make sense in upstream too. I found one place in the current code base where pa_direction_valid() makes sense, but I didn't find any use for pa_direction_to_string() at this time. Should I push both functions to upstream, or just pa_direction_valid(), or neither? If I get no answers, I will push both. Tanu Kaskinen (2): direction: Add a couple of direction helper functions introspect: Use pa_direction_valid() to validate port direction src/Makefile.am | 2 ++ src/map-file | 2 ++ src/pulse/direction.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ src/pulse/direction.h | 37 +++++++++++++++++++++++++++++++++++++ src/pulse/introspect.c | 6 +++--- 5 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 src/pulse/direction.c create mode 100644 src/pulse/direction.h -- 1.8.3.1