summaryrefslogtreecommitdiffstats
path: root/loopback.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 /loopback.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 'loopback.c')
-rw-r--r--loopback.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/loopback.c b/loopback.c
index 5b07ef7..c7ff7c6 100644
--- a/loopback.c
+++ b/loopback.c
@@ -23,27 +23,27 @@
#include "utils.h"
#include "list.h"
-pa_loopback *pa_loopback_init (void)
+agl_loopback *agl_loopback_init (void)
{
- pa_loopback *loopback = pa_xnew0 (pa_loopback, 1);
+ agl_loopback *loopback = pa_xnew0 (agl_loopback, 1);
return loopback;
}
-void pa_loopback_done (struct userdata *u, pa_loopback *loopback)
+void agl_loopback_done (struct userdata *u, agl_loopback *loopback)
{
- pa_loopnode *loop, *n;
+ agl_loopnode *loop, *n;
pa_core *core;
pa_assert_se (core = u->core);
PA_LLIST_FOREACH_SAFE(loop, n, loopback->loopnodes) {
- pa_module_unload_by_index(core, loop->module_index, false);
+ pa_module_unload_by_index (core, loop->module_index, false);
}
}
-pa_loopnode *pa_loopnode_create (struct userdata *u, pa_loopnode_type type,
- uint32_t node_index, uint32_t source_index, uint32_t sink_index)
+agl_loopnode *agl_loopnode_create (struct userdata *u, agl_loopnode_type type,
+ uint32_t node_index, uint32_t source_index, uint32_t sink_index)
{
pa_core *core;
pa_module *module;
@@ -53,7 +53,7 @@ pa_loopnode *pa_loopnode_create (struct userdata *u, pa_loopnode_type type,
const char *sinam;
pa_source_output *sout;
pa_sink_input *sinp;
- pa_loopnode *loopnode;
+ agl_loopnode *loopnode;
int idx;
char args[256];
@@ -61,9 +61,9 @@ pa_loopnode *pa_loopnode_create (struct userdata *u, pa_loopnode_type type,
pa_assert_se (core = u->core);
source = pa_idxset_get_by_index (core->sources, source_index);
- sonam = pa_utils_get_source_name (source);
sink = pa_idxset_get_by_index (core->sinks, sink_index);
- sinam = pa_utils_get_sink_name (sink);
+ sonam = agl_utils_get_source_name (source);
+ sinam = agl_utils_get_sink_name (sink);
snprintf (args, sizeof(args), "source=\"%s\" sink=\"%s\"", sonam, sinam);
module = pa_module_load (core, "module-loopback", args);
@@ -89,7 +89,7 @@ pa_loopnode *pa_loopnode_create (struct userdata *u, pa_loopnode_type type,
return NULL;
}
- loopnode = pa_xnew0 (pa_loopnode, 1);
+ loopnode = pa_xnew0 (agl_loopnode, 1);
loopnode->module_index = module->index;
loopnode->source_output_index = sout->index;
loopnode->sink_input_index = sinp->index;
@@ -97,7 +97,7 @@ pa_loopnode *pa_loopnode_create (struct userdata *u, pa_loopnode_type type,
return loopnode;
}
-void pa_loopnode_destroy (struct userdata *u, pa_loopnode *loopnode)
+void agl_loopnode_destroy (struct userdata *u, agl_loopnode *loopnode)
{
pa_core *core;
pa_module *module;