summaryrefslogtreecommitdiffstats
path: root/router.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 /router.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 'router.c')
-rw-r--r--router.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/router.c b/router.c
index c1e7d2a..a431b69 100644
--- a/router.c
+++ b/router.c
@@ -23,14 +23,14 @@
#include "switch.h"
#include "utils.h"
-pa_router *pa_router_init (struct userdata *u)
+agl_router *agl_router_init (struct userdata *u)
{
- pa_router *router;
+ agl_router *router;
size_t num_classes;
num_classes = agl_application_class_end;
- router = pa_xnew0 (pa_router, 1);
+ router = pa_xnew0 (agl_router, 1);
router->rtgroups.input = pa_hashmap_new (pa_idxset_string_hash_func,
pa_idxset_string_compare_func);
router->rtgroups.output = pa_hashmap_new (pa_idxset_string_hash_func,
@@ -44,9 +44,9 @@ pa_router *pa_router_init (struct userdata *u)
return router;
}
-void pa_router_done (struct userdata *u)
+void agl_router_done (struct userdata *u)
{
- pa_router *router;
+ agl_router *router;
agl_node *e,*n;
agl_connection *conn, *c;
agl_rtgroup *rtg;
@@ -113,7 +113,7 @@ void agl_router_register_node (struct userdata *u, agl_node *node)
pa_assert (u);
pa_assert (node);
- implement_default_route (u, node, NULL, pa_utils_new_stamp ());
+ implement_default_route (u, node, NULL, agl_utils_new_stamp ());
}
void agl_router_unregister_node (struct userdata *u, agl_node *node)
@@ -121,12 +121,12 @@ void agl_router_unregister_node (struct userdata *u, agl_node *node)
pa_assert (u);
pa_assert (node);
- remove_routes (u, node, NULL, pa_utils_new_stamp ());
+ remove_routes (u, node, NULL, agl_utils_new_stamp ());
}
agl_node *agl_router_make_prerouting (struct userdata *u, agl_node *data)
{
- pa_router *router;
+ agl_router *router;
int priority;
static bool done_prerouting;
uint32_t stamp;
@@ -141,7 +141,7 @@ agl_node *agl_router_make_prerouting (struct userdata *u, agl_node *data)
done_prerouting = false;
target = NULL;
- stamp = pa_utils_new_stamp ();
+ stamp = agl_utils_new_stamp ();
//make_explicit_routes (u, stamp);
@@ -181,7 +181,7 @@ agl_node *agl_router_make_prerouting (struct userdata *u, agl_node *data)
void agl_router_make_routing (struct userdata *u)
{
- pa_router *router;
+ agl_router *router;
static bool ongoing_routing; /* true while we are actively routing */
uint32_t stamp;
agl_node *start, *end;
@@ -192,7 +192,7 @@ void agl_router_make_routing (struct userdata *u)
if (ongoing_routing) /* already routing, canceling */
return;
ongoing_routing = true;
- stamp = pa_utils_new_stamp ();
+ stamp = agl_utils_new_stamp ();
pa_log_debug("stamp for routing: %d", stamp);