summaryrefslogtreecommitdiffstats
path: root/router.h
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-06-14 11:44:45 +0200
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-10-11 17:09:07 +0200
commitacb229813f5845e8b38bea56870211319887f3b4 (patch)
tree207d1aaffe0e2a0444e035d02311a326e60bc94a /router.h
parent9dc64e1e291d6518da0a918105c5bf7b1c603dd5 (diff)
Rename all internal pa_ definitions to agl_
The plugin often uses "pa_" for its internal structures and functions, which is misleading because this prefix is also used by PulseAudio itself. Thus, reading the code can be confusing. Rename everything to "agl_". Change-Id: Iadd03daf528ec0cbed1cb526aeb3bada757a211f Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'router.h')
-rw-r--r--router.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/router.h b/router.h
index a1d2f7f..d3096ac 100644
--- a/router.h
+++ b/router.h
@@ -41,17 +41,17 @@ struct agl_rtgroup {
typedef struct {
pa_hashmap *input;
pa_hashmap *output;
-} pa_rtgroup_hash;
+} agl_rtgroup_hash;
typedef struct {
agl_rtgroup **input[AGL_ZONE_MAX];
agl_rtgroup **output[AGL_ZONE_MAX];
-} pa_rtgroup_classmap;
+} agl_rtgroup_classmap;
-struct pa_router {
- pa_rtgroup_hash rtgroups;
+struct agl_router {
+ agl_rtgroup_hash rtgroups;
size_t maplen; /**< length of the class */
- pa_rtgroup_classmap classmap; /**< map device node types to rtgroups */
+ agl_rtgroup_classmap classmap; /**< map device node types to rtgroups */
int *priormap; /**< stream node priorities */
agl_dlist nodlist; /**< priorized list of the stream nodes
(entry in node: rtprilist) */
@@ -67,8 +67,8 @@ struct agl_connection {
uint32_t stream; /**< index of the sink-input to be routed */
};
-pa_router *pa_router_init (struct userdata *);
-void pa_router_done (struct userdata *);
+agl_router *agl_router_init (struct userdata *);
+void agl_router_done (struct userdata *);
bool agl_router_default_accept (struct userdata *, agl_rtgroup *, agl_node *);
bool agl_router_phone_accept (struct userdata *, agl_rtgroup *, agl_node *);