Improve g_get_system_data_dirs() on Windows. A library that calls
authorTor Lillqvist <tml@novell.com>
Fri, 8 Apr 2005 12:03:16 +0000 (12:03 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 8 Apr 2005 12:03:16 +0000 (12:03 +0000)
commit5a88294fc39579d763770f31b8e6d48a4c133c89
tree6bfcddd9d725b83dc346a80891f1b94011dd750b
parent30942cba2881de17b5df8e16f32d334eab2dbc25
Improve g_get_system_data_dirs() on Windows. A library that calls

2005-04-08  Tor Lillqvist  <tml@novell.com>

Improve g_get_system_data_dirs() on Windows. A library that calls
g_get_system_data_dirs() might be installed in a different
top-level prefix than GLib or the application being run.

* glib/gutils.h (g_win32_get_system_data_dirs): New static
function defined in this header. Calls
g_win32_get_system_data_dirs_for_module() passing the address of
itself as parameter. g_get_system_data_dirs() is #defined as this
function.

* glib/gutils.c (g_win32_get_system_data_dirs_for_module): New
function. If the address parameter is non-NULL, the corresponding
module's installation location is used for one of the returned
path names, in addition to the COMMON_APPDATA, COMMON_DOCUMENTS,
glib top-level and application top-level folders.
(g_get_system_data_dirs): Now just for backward compatibility on
Win32. Just call g_win32_get_system_data_dirs_for_module(NULL).

* glib/glib.symbols: Add g_win32_get_system_data_dirs_for_module.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
glib/glib.symbols
glib/gutils.c
glib/gutils.h