alsa: Add pa_alsa_jack_new() and pa_alsa_jack_free()

This reduces code duplication in alsa-mixer.c and alsa-ucm.c. No
functional changes.
This commit is contained in:
Tanu Kaskinen 2015-05-04 21:03:40 +03:00
parent c50766b52a
commit f5fecff0b4
3 changed files with 39 additions and 25 deletions

View file

@ -170,6 +170,9 @@ struct pa_alsa_jack {
pa_alsa_required_t required_absent;
};
pa_alsa_jack *pa_alsa_jack_new(pa_alsa_path *path, const char *name, const char *alsa_name);
void pa_alsa_jack_free(pa_alsa_jack *jack);
/* A path wraps a series of elements into a single entity which can be
* used to control it as if it had a single volume slider, a single
* mute switch and a single list of selectable options. */