+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
}
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);
**/
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);
/* 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;
**/
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;
/* 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;
#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);