glib/gwin32.h Add const to gchar* arguments. (#384523, Yevgen Muntyan)
authorTor Lillqvist <tml@novell.com>
Wed, 27 Dec 2006 14:50:17 +0000 (14:50 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 27 Dec 2006 14:50:17 +0000 (14:50 +0000)
2006-12-27  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.h
* glib/gwin32.c (get_package_directory_from_module)
(g_win32_get_package_installation_directory)
(g_win32_get_package_installation_subdirectory): Add const to
gchar* arguments. (#384523, Yevgen Muntyan)

ChangeLog
glib/gwin32.c
glib/gwin32.h

index fafe3fe..53df5ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-12-27  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gwin32.h
+       * glib/gwin32.c (get_package_directory_from_module)
+       (g_win32_get_package_installation_directory)
+       (g_win32_get_package_installation_subdirectory): Add const to
+       gchar* arguments. (#384523, Yevgen Muntyan)
+       
 2006-12-27  Ryan Lortie  <desrt@desrt.ca>
 
        * glib/ghash.c: cache the value of the hash function
index f7a295e..b2a5351 100644 (file)
@@ -1081,7 +1081,7 @@ g_win32_error_message (gint error)
 }
 
 static gchar *
-get_package_directory_from_module (gchar *module_name)
+get_package_directory_from_module (const gchar *module_name)
 {
   static GHashTable *module_dirs = NULL;
   G_LOCK_DEFINE_STATIC (module_dirs);
@@ -1184,8 +1184,8 @@ get_package_directory_from_module (gchar *module_name)
  **/
 
 gchar *
-g_win32_get_package_installation_directory (gchar *package,
-                                           gchar *dll_name)
+g_win32_get_package_installation_directory (const gchar *package,
+                                           const gchar *dll_name)
 {
   static GHashTable *package_dirs = NULL;
   G_LOCK_DEFINE_STATIC (package_dirs);
@@ -1264,8 +1264,8 @@ g_win32_get_package_installation_directory (gchar *package,
 /* DLL ABI binary compatibility version that uses system codepage file names */
 
 gchar *
-g_win32_get_package_installation_directory (gchar *package,
-                                           gchar *dll_name)
+g_win32_get_package_installation_directory (const gchar *package,
+                                           const gchar *dll_name)
 {
   gchar *utf8_package = NULL, *utf8_dll_name = NULL;
   gchar *utf8_retval, *retval;
@@ -1307,9 +1307,9 @@ g_win32_get_package_installation_directory (gchar *package,
  **/
 
 gchar *
-g_win32_get_package_installation_subdirectory (gchar *package,
-                                              gchar *dll_name,
-                                              gchar *subdir)
+g_win32_get_package_installation_subdirectory (const gchar *package,
+                                              const gchar *dll_name,
+                                              const gchar *subdir)
 {
   gchar *prefix;
   gchar *dirname;
@@ -1327,9 +1327,9 @@ g_win32_get_package_installation_subdirectory (gchar *package,
 /* DLL ABI binary compatibility version that uses system codepage file names */
 
 gchar *
-g_win32_get_package_installation_subdirectory (gchar *package,
-                                              gchar *dll_name,
-                                              gchar *subdir)
+g_win32_get_package_installation_subdirectory (const gchar *package,
+                                              const gchar *dll_name,
+                                              const gchar *subdir)
 {
   gchar *prefix;
   gchar *dirname;
index 92977d3..9c10447 100644 (file)
@@ -82,12 +82,12 @@ gchar*          g_win32_error_message (gint error);
 #define g_win32_get_package_installation_directory g_win32_get_package_installation_directory_utf8
 #define g_win32_get_package_installation_subdirectory g_win32_get_package_installation_subdirectory_utf8
 
-gchar*          g_win32_get_package_installation_directory (gchar *package,
-                                                           gchar *dll_name);
+gchar*          g_win32_get_package_installation_directory (const gchar *package,
+                                                           const gchar *dll_name);
 
-gchar*          g_win32_get_package_installation_subdirectory (gchar *package,
-                                                              gchar *dll_name,
-                                                              gchar *subdir);
+gchar*          g_win32_get_package_installation_subdirectory (const gchar *package,
+                                                              const gchar *dll_name,
+                                                              const gchar *subdir);
 
 guint          g_win32_get_windows_version (void);