summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-01 11:51:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-01 11:51:52 +0000
commitd3825e4c8a5ef9ac3402a6761a1589e2ae311044 (patch)
tree759654d210c4b8c8ccbeec7421fd402c0146206f /libao2
parent82d097d04bf08ec28444709569f6d65347d2ac0f (diff)
downloadmpv-d3825e4c8a5ef9ac3402a6761a1589e2ae311044.tar.bz2
mpv-d3825e4c8a5ef9ac3402a6761a1589e2ae311044.tar.xz
Move several of the ao_nas int-to-string maps into .rodata
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28227 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_nas.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libao2/ao_nas.c b/libao2/ao_nas.c
index 5428c7489f..92ca56a35f 100644
--- a/libao2/ao_nas.c
+++ b/libao2/ao_nas.c
@@ -44,7 +44,7 @@
/* NAS_FRAG_SIZE must be a power-of-two value */
#define NAS_FRAG_SIZE 4096
-static char *nas_event_types[] = {
+static const char * const nas_event_types[] = {
"Undefined",
"Undefined",
"ElementNotify",
@@ -54,21 +54,21 @@ static char *nas_event_types[] = {
"DeviceNotify"
};
-static char *nas_elementnotify_kinds[] = {
+static const char * const nas_elementnotify_kinds[] = {
"LowWater",
"HighWater",
"State",
"Unknown"
};
-static char *nas_states[] = {
+static const char * const nas_states[] = {
"Stop",
"Start",
"Pause",
"Any"
};
-static char *nas_reasons[] = {
+static const char * const nas_reasons[] = {
"User",
"Underrun",
"Overrun",
@@ -78,24 +78,24 @@ static char *nas_reasons[] = {
"Any"
};
-static char* nas_reason(unsigned int reason)
+static const char* nas_reason(unsigned int reason)
{
if (reason > 6) reason = 6;
return nas_reasons[reason];
}
-static char* nas_elementnotify_kind(unsigned int kind)
+static const char* nas_elementnotify_kind(unsigned int kind)
{
if (kind > 2) kind = 3;
return nas_elementnotify_kinds[kind];
}
-static char* nas_event_type(unsigned int type) {
+static const char* nas_event_type(unsigned int type) {
if (type > 6) type = 0;
return nas_event_types[type];
}
-static char* nas_state(unsigned int state) {
+static const char* nas_state(unsigned int state) {
if (state>3) state = 3;
return nas_states[state];
}