mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
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:
parent
f61a16b8b1
commit
d97460045c
9 changed files with 47 additions and 19 deletions
|
|
@ -20,8 +20,7 @@
|
|||
along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
typedef struct pa_card pa_card;
|
||||
|
||||
#include <pulsecore/typedefs.h>
|
||||
#include <pulse/proplist.h>
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
|
@ -35,7 +34,7 @@ typedef enum pa_available {
|
|||
PA_AVAILABLE_YES = 2,
|
||||
} pa_available_t;
|
||||
|
||||
typedef struct pa_card_profile {
|
||||
struct pa_card_profile {
|
||||
pa_card *card;
|
||||
char *name;
|
||||
char *description;
|
||||
|
|
@ -59,7 +58,7 @@ typedef struct pa_card_profile {
|
|||
unsigned max_source_channels;
|
||||
|
||||
/* .. followed by some implementation specific data */
|
||||
} pa_card_profile;
|
||||
};
|
||||
|
||||
#define PA_CARD_PROFILE_DATA(d) ((void*) ((uint8_t*) d + PA_ALIGN(sizeof(pa_card_profile))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue