summaryrefslogtreecommitdiffstats
path: root/utils.h
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 /utils.h
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 'utils.h')
-rw-r--r--utils.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/utils.h b/utils.h
index dac35b9..611283a 100644
--- a/utils.h
+++ b/utils.h
@@ -26,28 +26,28 @@
#include "userdata.h"
-struct pa_null_sink;
+struct agl_null_sink;
-struct pa_null_sink *pa_utils_create_null_sink (struct userdata *, const char *);
-void pa_utils_destroy_null_sink (struct userdata *, struct pa_null_sink *);
-pa_sink *pa_utils_get_null_sink (struct userdata *, struct pa_null_sink *);
-pa_source *pa_utils_get_null_source (struct userdata *, struct pa_null_sink *);
+struct agl_null_sink *agl_utils_create_null_sink (struct userdata *, const char *);
+void agl_utils_destroy_null_sink (struct userdata *, struct agl_null_sink *);
+pa_sink *agl_utils_get_null_sink (struct userdata *, struct agl_null_sink *);
+pa_source *agl_utils_get_null_source (struct userdata *, struct agl_null_sink *);
/* general helper functions */
-const char *pa_utils_get_card_name (pa_card *);
-const char *pa_utils_get_card_bus (pa_card *);
-const char *pa_utils_get_sink_name (pa_sink *);
-const char *pa_utils_get_source_name (pa_source *);
-const char *pa_utils_get_sink_input_name (pa_sink_input *);
-const char *pa_utils_get_source_output_name (pa_source_output *);
-pa_sink *pa_utils_get_primary_alsa_sink (struct userdata *);
-void pa_utils_init_stamp (void);
-uint32_t pa_utils_new_stamp (void);
-uint32_t pa_utils_get_stamp (void);
+const char *agl_utils_get_card_name (pa_card *);
+const char *agl_utils_get_card_bus (pa_card *);
+const char *agl_utils_get_sink_name (pa_sink *);
+const char *agl_utils_get_source_name (pa_source *);
+const char *agl_utils_get_sink_input_name (pa_sink_input *);
+const char *agl_utils_get_source_output_name (pa_source_output *);
+pa_sink *agl_utils_get_primary_alsa_sink (struct userdata *);
+void agl_utils_init_stamp (void);
+uint32_t agl_utils_new_stamp (void);
+uint32_t agl_utils_get_stamp (void);
/* AM-oriented helper functions */
-char *pa_utils_get_zone (pa_proplist *, pa_proplist *);
-bool pa_utils_set_stream_routing_properties (pa_proplist *, int, void *);
-bool pa_utils_unset_stream_routing_properties (pa_proplist *);
+char *agl_utils_get_zone (pa_proplist *, pa_proplist *);
+bool agl_utils_set_stream_routing_properties (pa_proplist *, int, void *);
+bool agl_utils_unset_stream_routing_properties (pa_proplist *);
#endif