From 5ff1004c4d853691974bab0d0389b2fd06418939 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 16 Mar 2006 17:36:19 +0100 Subject: [PATCH] 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(+) diff --git a/include/wine/library.h b/include/wine/library.h index 385256db082..3555d57661f 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 79146d3db9c..5aadf73ff22 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 03883745fbd..7f4ec26b022 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 3a9c72af050..a7e6f1d6358 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; -- 2.11.4.GIT