Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8505f142
Commit
8505f142
authored
Mar 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Export functions that return the Wine version number and build id.
parent
dcefb677
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
16 deletions
+33
-16
library.h
include/wine/library.h
+2
-0
.gitignore
libs/.gitignore
+2
-0
Makefile.in
libs/wine/Makefile.in
+9
-1
config.c
libs/wine/config.c
+13
-0
wine.def
libs/wine/wine.def
+2
-0
wine.map
libs/wine/wine.map
+2
-0
.gitignore
loader/.gitignore
+0
-2
Makefile.in
loader/Makefile.in
+2
-11
main.c
loader/main.c
+1
-2
No files found.
include/wine/library.h
View file @
8505f142
...
...
@@ -38,6 +38,8 @@ 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
const
char
*
wine_get_version
(
void
);
extern
const
char
*
wine_get_build_id
(
void
);
extern
void
wine_init_argv0_path
(
const
char
*
argv0
);
extern
void
wine_exec_wine_binary
(
const
char
*
name
,
char
**
argv
,
const
char
*
env_var
);
...
...
libs/.gitignore
View file @
8505f142
*.dylib
*.so.*
wine/version-stamp
wine/version.c
libs/wine/Makefile.in
View file @
8505f142
...
...
@@ -96,6 +96,8 @@ C_SRCS = \
c_28605.c
\
c_28606.c
EXTRA_OBJS
=
version.o
all
:
$(MODULE) $(MODULE:.dll=.a)
@MAKE_RULES@
...
...
@@ -173,8 +175,14 @@ uninstall::
-
cd
$(DESTDIR)$(libdir)
&&
$(RM)
libwine.a libwine.dll libwine.so libwine.so.
$(VERSION)
\
libwine.so.
$(SOVERSION)
libwine.dylib libwine.
$(VERSION)
.dylib libwine.
$(SOVERSION)
.dylib
version-stamp
:
dummy
(
GIT_DIR
=
$(TOPSRCDIR)
/.git git describe HEAD 2>/dev/null
||
echo
"wine-@PACKAGE_VERSION@"
)
|
sed
-e
's/\(.*\)/const char wine_build[] = "\1";/'
>
$@
||
(
$(RM)
$@
&&
exit
1
)
version.c
:
version-stamp
@
cmp
-s
version-stamp
$@
||
cp
version-stamp
$@
clean
::
$(RM)
libwine.so.
$(SOVERSION)
libwine.so.
$(VERSION)
$(RM)
libwine.so.
$(SOVERSION)
libwine.so.
$(VERSION)
version.c version-stamp
$(RELPATH)
:
@
cd
$(TOOLSDIR)
/tools
&&
$(MAKE)
relpath
...
...
libs/wine/config.c
View file @
8505f142
...
...
@@ -407,6 +407,19 @@ const char *wine_get_user_name(void)
return
user_name
;
}
/* return the standard version string */
const
char
*
wine_get_version
(
void
)
{
return
PACKAGE_VERSION
;
}
/* return the build id string */
const
char
*
wine_get_build_id
(
void
)
{
extern
const
char
wine_build
[];
return
wine_build
;
}
/* exec a binary using the preloader if requested; helper for wine_exec_wine_binary */
static
void
preloader_exec
(
char
**
argv
,
int
use_preloader
)
{
...
...
libs/wine/wine.def
View file @
8505f142
...
...
@@ -77,6 +77,7 @@ EXPORTS
wine_exec_wine_binary
wine_fold_string
wine_get_build_dir
wine_get_build_id
wine_get_config_dir
wine_get_cs
wine_get_data_dir
...
...
@@ -88,6 +89,7 @@ EXPORTS
wine_get_sortkey
wine_get_ss
wine_get_user_name
wine_get_version
wine_init
wine_init_argv0_path
wine_is_dbcs_leadbyte
...
...
libs/wine/wine.map
View file @
8505f142
...
...
@@ -77,6 +77,7 @@ WINE_1.0
wine_exec_wine_binary;
wine_fold_string;
wine_get_build_dir;
wine_get_build_id;
wine_get_config_dir;
wine_get_cs;
wine_get_data_dir;
...
...
@@ -88,6 +89,7 @@ WINE_1.0
wine_get_sortkey;
wine_get_ss;
wine_get_user_name;
wine_get_version;
wine_init;
wine_init_argv0_path;
wine_is_dbcs_leadbyte;
...
...
loader/.gitignore
deleted
100644 → 0
View file @
dcefb677
/version-stamp
/version.c
loader/Makefile.in
View file @
8505f142
...
...
@@ -12,8 +12,8 @@ C_SRCS = \
preloader.c
\
pthread.c
KTHREAD_OBJS
=
kthread.o main.o
version.o
PTHREAD_OBJS
=
pthread.o main.o
version.o
KTHREAD_OBJS
=
kthread.o main.o
PTHREAD_OBJS
=
pthread.o main.o
MAIN_BINARY
=
@MAIN_BINARY@
EXTRA_BINARIES
=
@EXTRA_BINARIES@
...
...
@@ -97,13 +97,4 @@ uninstall::
$(RM)
$(DESTDIR)$(mandir)
/de.UTF-8/man
$(prog_manext)
/wine.
$(prog_manext)
$(RM)
$(DESTDIR)$(mandir)
/fr.UTF-8/man
$(prog_manext)
/wine.
$(prog_manext)
clean
::
$(RM)
version.c version-stamp
version-stamp
:
dummy
(
GIT_DIR
=
$(TOPSRCDIR)
/.git git-describe HEAD 2>/dev/null
||
echo
"wine-@PACKAGE_VERSION@"
)
|
sed
-e
's/\(.*\)/const char wine_version[] = "\1";/'
>
$@
||
(
$(RM)
$@
&&
exit
1
)
version.c
:
version-stamp
@
cmp
-s
version-stamp
$@
||
cp
version-stamp
$@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
loader/main.c
View file @
8505f142
...
...
@@ -68,7 +68,6 @@ static inline void reserve_area( void *addr, size_t size )
*/
static
void
check_command_line
(
int
argc
,
char
*
argv
[]
)
{
extern
const
char
wine_version
[];
static
const
char
usage
[]
=
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
\n
"
" wine --help Display this help and exit
\n
"
...
...
@@ -86,7 +85,7 @@ static void check_command_line( int argc, char *argv[] )
}
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
{
printf
(
"%s
\n
"
,
wine_
version
);
printf
(
"%s
\n
"
,
wine_
get_build_id
()
);
exit
(
0
);
}
}
...
...
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