typedefs.h: Move some typedefs to a separate file

The relationship between sinks, sources, cards, profiles, and ports
is becoming ever more intertwined, to the point that if you try to
include one file from the other, you're likely to end up with some
weird error somewhere else.

Work around this by creating a new typedefs.h, which does not depend
on anything else, and just creates a few typedefs.

(Can be expanded with more typedefs in the future if the need arises.)

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2015-11-26 18:29:58 +01:00 committed by Tanu Kaskinen
parent f61a16b8b1
commit d97460045c
9 changed files with 47 additions and 19 deletions

View file

@ -21,11 +21,10 @@
along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
***/
typedef struct pa_source pa_source;
typedef struct pa_source_volume_change pa_source_volume_change;
#include <inttypes.h>
#include <pulsecore/typedefs.h>
#include <pulse/def.h>
#include <pulse/format.h>
#include <pulse/sample.h>