Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2f026d16
Commit
2f026d16
authored
Mar 06, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Export a function to retrieve the data directory (based on a
patch by Dmitry Timoshkov).
parent
9a722d0a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1 deletion
+15
-1
library.h
include/wine/library.h
+1
-0
Makefile.in
libs/wine/Makefile.in
+3
-1
config.c
libs/wine/config.c
+9
-0
wine.def
libs/wine/wine.def
+1
-0
wine.map
libs/wine/wine.map
+1
-0
No files found.
include/wine/library.h
View file @
2f026d16
...
...
@@ -30,6 +30,7 @@
/* configuration */
extern
const
char
*
wine_get_config_dir
(
void
);
extern
const
char
*
wine_get_data_dir
(
void
);
extern
const
char
*
wine_get_server_dir
(
void
);
extern
const
char
*
wine_get_user_name
(
void
);
extern
void
wine_init_argv0_path
(
const
char
*
argv0
);
...
...
libs/wine/Makefile.in
View file @
2f026d16
...
...
@@ -23,7 +23,9 @@ CONFIGDIRS = \
-DDLLDIR
=
'"
$(dlldir)
"'
\
-DLIB_TO_BINDIR
=
\"
`
$(RELPATH)
$(libdir)
$(bindir)
`
\"
\
-DLIB_TO_DLLDIR
=
\"
`
$(RELPATH)
$(libdir)
$(dlldir)
`
\"
\
-DBIN_TO_DLLDIR
=
\"
`
$(RELPATH)
$(bindir)
$(dlldir)
`
\"
-DBIN_TO_DLLDIR
=
\"
`
$(RELPATH)
$(bindir)
$(dlldir)
`
\"
\
-DLIB_TO_DATADIR
=
\"
`
$(RELPATH)
$(libdir)
$(datadir)
/wine
`
\"
\
-DBIN_TO_DATADIR
=
\"
`
$(RELPATH)
$(bindir)
$(datadir)
/wine
`
\"
config.o
:
config.c $(RELPATH)
$(CC)
-c
$(ALLCFLAGS)
-o
$@
$(SRCDIR)
/config.c
$(CONFIGDIRS)
...
...
libs/wine/config.c
View file @
2f026d16
...
...
@@ -41,6 +41,7 @@ static const char server_dir_prefix[] = "/server-"; /* prefix for server di
static
char
*
bindir
;
static
char
*
dlldir
;
static
char
*
datadir
;
static
char
*
config_dir
;
static
char
*
server_dir
;
static
char
*
user_name
;
...
...
@@ -248,6 +249,7 @@ void wine_init_argv0_path( const char *argv0 )
{
bindir
=
build_path
(
libdir
,
LIB_TO_BINDIR
);
dlldir
=
build_path
(
libdir
,
LIB_TO_DLLDIR
);
datadir
=
build_path
(
libdir
,
LIB_TO_DATADIR
);
return
;
}
...
...
@@ -283,6 +285,7 @@ void wine_init_argv0_path( const char *argv0 )
}
dlldir
=
build_path
(
bindir
,
BIN_TO_DLLDIR
);
datadir
=
build_path
(
bindir
,
BIN_TO_DATADIR
);
}
/* return the configuration directory ($WINEPREFIX or $HOME/.wine) */
...
...
@@ -292,6 +295,12 @@ const char *wine_get_config_dir(void)
return
config_dir
;
}
/* retrieve the wine data dir */
const
char
*
wine_get_data_dir
(
void
)
{
return
datadir
;
}
/* return the full name of the server directory (the one containing the socket) */
const
char
*
wine_get_server_dir
(
void
)
{
...
...
libs/wine/wine.def
View file @
2f026d16
...
...
@@ -27,6 +27,7 @@ EXPORTS
wine_exec_wine_binary
wine_get_config_dir
wine_get_cs
wine_get_data_dir
wine_get_ds
wine_get_es
wine_get_fs
...
...
libs/wine/wine.map
View file @
2f026d16
...
...
@@ -27,6 +27,7 @@ WINE_1.0
wine_exec_wine_binary;
wine_get_config_dir;
wine_get_cs;
wine_get_data_dir;
wine_get_ds;
wine_get_es;
wine_get_fs;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment