Code Review
/
staging
/
agl-audio-plugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rename all internal pa_ definitions to agl_
[staging/agl-audio-plugin.git]
/
audiomgr.c
diff --git
a/audiomgr.c
b/audiomgr.c
index
138d9f1
..
cfbdc67
100644
(file)
--- a/
audiomgr.c
+++ b/
audiomgr.c
@@
-41,20
+41,20
@@
typedef struct {
link_t *links;
} routes_t;
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 */
};
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);
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,
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;
}
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)
if (u && (am = u->audiomgr)) {
//if (u->routerif && am->domain.id != AM_ID_INVALID)