summaryrefslogtreecommitdiffstats
path: root/audiomgr.c
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 /audiomgr.c
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 'audiomgr.c')
-rw-r--r--audiomgr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/audiomgr.c b/audiomgr.c
index 138d9f1..cfbdc67 100644
--- a/audiomgr.c
+++ b/audiomgr.c
@@ -41,20 +41,20 @@ typedef struct {
link_t *links;
} routes_t;
-struct pa_audiomgr {
+struct agl_audiomgr {
domain_t domain;
pa_hashmap *nodes; /**< nodes ie. sinks and sources */
pa_hashmap *conns; /**< connections */
routes_t defrts; /**< default routes */
};
-struct pa_audiomgr *pa_audiomgr_init (struct userdata *u)
+struct agl_audiomgr *agl_audiomgr_init (struct userdata *u)
{
- pa_audiomgr *am;
+ agl_audiomgr *am;
pa_assert (u);
- am = pa_xnew0 (pa_audiomgr, 1);
+ am = pa_xnew0 (agl_audiomgr, 1);
am->domain.id = AM_ID_INVALID;
am->domain.state = DS_DOWN;
am->nodes = pa_hashmap_new (pa_idxset_trivial_hash_func,
@@ -64,9 +64,9 @@ struct pa_audiomgr *pa_audiomgr_init (struct userdata *u)
return am;
}
-void pa_audiomgr_done (struct userdata *u)
+void agl_audiomgr_done (struct userdata *u)
{
- pa_audiomgr *am;
+ agl_audiomgr *am;
if (u && (am = u->audiomgr)) {
//if (u->routerif && am->domain.id != AM_ID_INVALID)