glib/gwin32.h Add const to gchar* arguments. (#384523, Yevgen Muntyan)

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)
This commit is contained in:
Tor Lillqvist 2006-12-27 14:50:17 +00:00 committed by Tor Lillqvist
parent e6b78c9af1
commit 90d70c5967
3 changed files with 24 additions and 16 deletions

View File

@ -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

View 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;

View 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);