Alexandre Julliard : libwine: Export wine_get_build_dir.
Module: wine Branch: refs/heads/master Commit: 5ff1004c4d853691974bab0d0389b2fd06418939 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5ff1004c4d853691974bab0d... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Mar 16 17:36:19 2006 +0100 libwine: Export wine_get_build_dir. --- include/wine/library.h | 1 + libs/wine/config.c | 6 ++++++ libs/wine/wine.def | 1 + libs/wine/wine.map | 1 + 4 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/wine/library.h b/include/wine/library.h index 385256d..3555d57 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -29,6 +29,7 @@ /* configuration */ +extern const char *wine_get_build_dir(void); extern const char *wine_get_config_dir(void); extern const char *wine_get_data_dir(void); extern const char *wine_get_server_dir(void); diff --git a/libs/wine/config.c b/libs/wine/config.c index 79146d3..5aadf73 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -356,6 +356,12 @@ const char *wine_get_data_dir(void) return datadir; } +/* retrieve the wine build dir (if we are running from there) */ +const char *wine_get_build_dir(void) +{ + return build_dir; +} + /* return the full name of the server directory (the one containing the socket) */ const char *wine_get_server_dir(void) { diff --git a/libs/wine/wine.def b/libs/wine/wine.def index 0388374..7f4ec26 100644 --- a/libs/wine/wine.def +++ b/libs/wine/wine.def @@ -25,6 +25,7 @@ EXPORTS wine_dlopen wine_dlsym wine_exec_wine_binary + wine_get_build_dir wine_get_config_dir wine_get_cs wine_get_data_dir diff --git a/libs/wine/wine.map b/libs/wine/wine.map index 3a9c72a..a7e6f1d 100644 --- a/libs/wine/wine.map +++ b/libs/wine/wine.map @@ -25,6 +25,7 @@ WINE_1.0 wine_dlopen; wine_dlsym; wine_exec_wine_binary; + wine_get_build_dir; wine_get_config_dir; wine_get_cs; wine_get_data_dir;
participants (1)
-
Alexandre Julliard