libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
pulseaudio.h
1#ifndef _CRTX_PULSEAUDIO_H
2#define _CRTX_PULSEAUDIO_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9 * Mario Kicherer (dev@kicherer.org) 2016
10 *
11 */
12
13#include "core.h"
14#include "sdbus.h"
15
16#include "pulse/pulseaudio.h"
17
18#define CRTX_PA_MSG_ETYPE "pulseaudio/event"
19extern char *crtx_pa_msg_etype[];
20
22 struct crtx_listener_base base;
23
24 pa_proplist *client_proplist;
25 enum pa_subscription_mask subscription_mask;
26
27 pa_context *context;
28 pa_mainloop *mainloop;
29 enum pa_context_state state;
30};
31
32struct crtx_listener_base *crtx_setup_pa_listener(void *options);
33CRTX_DECLARE_ALLOC_FUNCTION(pa)
34
35void crtx_pa_init();
36void crtx_pa_finish();
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif
The core definitions of libcortex.
base structure of a listener
Definition core.h:186
Definition pulseaudio.h:21