summaryrefslogtreecommitdiffstats
path: root/node.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 /node.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 'node.c')
-rw-r--r--node.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/node.c b/node.c
index c6c59e2..212a923 100644
--- a/node.c
+++ b/node.c
@@ -23,13 +23,13 @@
#include <pulsecore/idxset.h>
-pa_nodeset *pa_nodeset_init (struct userdata *u)
+agl_nodeset *agl_nodeset_init (struct userdata *u)
{
- pa_nodeset *ns;
+ agl_nodeset *ns;
pa_assert (u);
- ns = pa_xnew0 (pa_nodeset, 1);
+ ns = pa_xnew0 (agl_nodeset, 1);
ns->nodes = pa_idxset_new (pa_idxset_trivial_hash_func,
pa_idxset_trivial_compare_func);
ns->roles = pa_hashmap_new (pa_idxset_string_hash_func,
@@ -39,10 +39,10 @@ pa_nodeset *pa_nodeset_init (struct userdata *u)
return ns;
}
-void pa_nodeset_done(struct userdata *u)
+void agl_nodeset_done(struct userdata *u)
{
- pa_nodeset *ns;
- pa_nodeset_map *role, *binary;
+ agl_nodeset *ns;
+ agl_nodeset_map *role, *binary;
void *state;
int i;
@@ -70,7 +70,7 @@ void pa_nodeset_done(struct userdata *u)
agl_node *agl_node_create (struct userdata *u, agl_node *data)
{
- pa_nodeset *ns;
+ agl_nodeset *ns;
agl_node *node;
pa_assert (u);
@@ -136,7 +136,7 @@ agl_node *agl_node_get_from_data (struct userdata *u, agl_direction type, void *
{
pa_sink_input_new_data *sinp_data;
pa_source_output_new_data *sout_data;
- pa_nodeset *nodeset;
+ agl_nodeset *nodeset;
agl_node *node;
uint32_t index;
@@ -162,7 +162,7 @@ agl_node *agl_node_get_from_data (struct userdata *u, agl_direction type, void *
agl_node *agl_node_get_from_client (struct userdata *u, pa_client *client)
{
- pa_nodeset *nodeset;
+ agl_nodeset *nodeset;
agl_node *node;
uint32_t index;