diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2016-06-14 11:44:45 +0200 |
---|---|---|
committer | Yannick Gicquel <yannick.gicquel@iot.bzh> | 2016-10-11 17:09:07 +0200 |
commit | acb229813f5845e8b38bea56870211319887f3b4 (patch) | |
tree | 207d1aaffe0e2a0444e035d02311a326e60bc94a /router.h | |
parent | 9dc64e1e291d6518da0a918105c5bf7b1c603dd5 (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.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 *); |