[libbluray-devel] added const

hpi1 git at videolan.org
Fri Aug 31 21:39:06 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Aug 29 15:35:03 2012 +0300| [52fd841c40a882bb771541bd75156c3346989aa3] | committer: hpi1

added const

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=52fd841c40a882bb771541bd75156c3346989aa3
---

 src/examples/clpi_dump.c |   14 +++++++-------
 src/examples/mpls_dump.c |   14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/examples/clpi_dump.c b/src/examples/clpi_dump.c
index 95f0216..35ed4fe 100644
--- a/src/examples/clpi_dump.c
+++ b/src/examples/clpi_dump.c
@@ -35,7 +35,7 @@ typedef struct {
 } VALUE_MAP;
 
 static inline const char*
-_lookup_str(VALUE_MAP *map, int val)
+_lookup_str(const VALUE_MAP *map, int val)
 {
     int ii;
 
@@ -47,7 +47,7 @@ _lookup_str(VALUE_MAP *map, int val)
     return "?";
 }
 
-VALUE_MAP codec_map[] = {
+const VALUE_MAP codec_map[] = {
     {0x01, "MPEG-1 Video"},
     {0x02, "MPEG-2 Video"},
     {0x03, "MPEG-1 Audio"},
@@ -69,7 +69,7 @@ VALUE_MAP codec_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP video_format_map[] = {
+const VALUE_MAP video_format_map[] = {
     {0, "Reserved"},
     {1, "480i"},
     {2, "576i"},
@@ -81,7 +81,7 @@ VALUE_MAP video_format_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP video_rate_map[] = {
+const VALUE_MAP video_rate_map[] = {
     {0, "Reserved1"},
     {1, "23.976"},
     {2, "24"},
@@ -93,7 +93,7 @@ VALUE_MAP video_rate_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP video_aspect_map[] = {
+const VALUE_MAP video_aspect_map[] = {
     {0, "Reserved1"},
     {1, "Reserved2"},
     {2, "4:3"},
@@ -101,7 +101,7 @@ VALUE_MAP video_aspect_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP audio_format_map[] = {
+const VALUE_MAP audio_format_map[] = {
     {0, "Reserved1"},
     {1, "Mono"},
     {2, "Reserved2"},
@@ -113,7 +113,7 @@ VALUE_MAP audio_format_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP audio_rate_map[] = {
+const VALUE_MAP audio_rate_map[] = {
     {0, "Reserved1"},
     {1, "48 Khz"},
     {2, "Reserved2"},
diff --git a/src/examples/mpls_dump.c b/src/examples/mpls_dump.c
index 9b0a873..0cccc5d 100644
--- a/src/examples/mpls_dump.c
+++ b/src/examples/mpls_dump.c
@@ -39,7 +39,7 @@ typedef struct {
     const char *str;
 } VALUE_MAP;
 
-VALUE_MAP codec_map[] = {
+const VALUE_MAP codec_map[] = {
     {0x01, "MPEG-1 Video"},
     {0x02, "MPEG-2 Video"},
     {0x03, "MPEG-1 Audio"},
@@ -61,7 +61,7 @@ VALUE_MAP codec_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP video_format_map[] = {
+const VALUE_MAP video_format_map[] = {
     {0, "Reserved"},
     {1, "480i"},
     {2, "576i"},
@@ -73,7 +73,7 @@ VALUE_MAP video_format_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP video_rate_map[] = {
+const VALUE_MAP video_rate_map[] = {
     {0, "Reserved1"},
     {1, "23.976"},
     {2, "24"},
@@ -85,7 +85,7 @@ VALUE_MAP video_rate_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP audio_format_map[] = {
+const VALUE_MAP audio_format_map[] = {
     {0, "Reserved1"},
     {1, "Mono"},
     {2, "Reserved2"},
@@ -97,7 +97,7 @@ VALUE_MAP audio_format_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP audio_rate_map[] = {
+const VALUE_MAP audio_rate_map[] = {
     {0, "Reserved1"},
     {1, "48 Khz"},
     {2, "Reserved2"},
@@ -109,14 +109,14 @@ VALUE_MAP audio_rate_map[] = {
     {0, NULL}
 };
 
-VALUE_MAP subpath_type_map[] = {
+const VALUE_MAP subpath_type_map[] = {
   {3, "Interactive Graphics presentation menu"},
   {4, "Text Subtitle"},
   {0,NULL}
 };
 
 const char*
-_lookup_str(VALUE_MAP *map, int val)
+_lookup_str(const VALUE_MAP *map, int val)
 {
     int ii;
 



More information about the libbluray-devel mailing list