summaryrefslogtreecommitdiffstats
path: root/switch.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 /switch.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 'switch.c')
-rw-r--r--switch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/switch.c b/switch.c
index 05386a0..954effd 100644
--- a/switch.c
+++ b/switch.c
@@ -147,10 +147,10 @@ bool agl_switch_setup_link (struct userdata *u, agl_node *from, agl_node *to, bo
return false;
}
- sink = pa_utils_get_primary_alsa_sink (u);
- source = pa_utils_get_null_source (u, from->nullsink);
+ sink = agl_utils_get_primary_alsa_sink (u);
+ source = agl_utils_get_null_source (u, from->nullsink);
- from->loopnode = pa_loopnode_create (u, PA_LOOPNODE_SINK, from->index, source->index, sink->index);
+ from->loopnode = agl_loopnode_create (u, AGL_LOOPNODE_SINK, from->index, source->index, sink->index);
}
}
@@ -181,9 +181,9 @@ bool agl_switch_teardown_link (struct userdata *u, agl_node *from, agl_node *to)
}
/* (the rest supposes "from->implement == agl_stream") */
if (from->loopnode)
- pa_loopnode_destroy (u, from->loopnode);
+ agl_loopnode_destroy (u, from->loopnode);
if (from->nullsink)
- pa_utils_destroy_null_sink (u, from->nullsink);
+ agl_utils_destroy_null_sink (u, from->nullsink);
}
//pa_log_debug("link %s => %s is torn down", from->amname, to->amname);