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
2058f543
Commit
2058f543
authored
Oct 18, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a __wine_dbg_set_channel_flags function to allow changing flags
from inside the code.
parent
7686aa86
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
0 deletions
+21
-0
debug.h
include/wine/debug.h
+2
-0
debug.c
libs/wine/debug.c
+17
-0
wine.def
libs/wine/wine.def
+1
-0
wine.map
libs/wine/wine.map
+1
-0
No files found.
include/wine/debug.h
View file @
2058f543
...
@@ -149,6 +149,8 @@ struct __wine_debug_functions
...
@@ -149,6 +149,8 @@ struct __wine_debug_functions
};
};
extern
unsigned
char
__wine_dbg_get_channel_flags
(
struct
__wine_debug_channel
*
channel
);
extern
unsigned
char
__wine_dbg_get_channel_flags
(
struct
__wine_debug_channel
*
channel
);
extern
int
__wine_dbg_set_channel_flags
(
struct
__wine_debug_channel
*
channel
,
unsigned
char
set
,
unsigned
char
clear
);
extern
void
__wine_dbg_set_functions
(
const
struct
__wine_debug_functions
*
new_funcs
,
extern
void
__wine_dbg_set_functions
(
const
struct
__wine_debug_functions
*
new_funcs
,
struct
__wine_debug_functions
*
old_funcs
,
size_t
size
);
struct
__wine_debug_functions
*
old_funcs
,
size_t
size
);
...
...
libs/wine/debug.c
View file @
2058f543
...
@@ -62,6 +62,23 @@ unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel
...
@@ -62,6 +62,23 @@ unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel
return
default_flags
;
return
default_flags
;
}
}
/* set the flags to use for a given channel; return 0 if the channel is not available to set */
int
__wine_dbg_set_channel_flags
(
struct
__wine_debug_channel
*
channel
,
unsigned
char
set
,
unsigned
char
clear
)
{
if
(
nb_debug_options
)
{
struct
__wine_debug_channel
*
opt
=
bsearch
(
channel
->
name
,
debug_options
,
nb_debug_options
,
sizeof
(
debug_options
[
0
]),
cmp_name
);
if
(
opt
)
{
opt
->
flags
=
(
opt
->
flags
&
~
clear
)
|
set
;
return
1
;
}
}
return
0
;
}
/* add a new debug option at the end of the option list */
/* add a new debug option at the end of the option list */
static
void
add_option
(
const
char
*
name
,
unsigned
char
set
,
unsigned
char
clear
)
static
void
add_option
(
const
char
*
name
,
unsigned
char
set
,
unsigned
char
clear
)
{
{
...
...
libs/wine/wine.def
View file @
2058f543
...
@@ -2,6 +2,7 @@ LIBRARY libwine.dll
...
@@ -2,6 +2,7 @@ LIBRARY libwine.dll
EXPORTS
EXPORTS
__wine_dbg_get_channel_flags
__wine_dbg_get_channel_flags
__wine_dbg_set_channel_flags
__wine_dbg_set_functions
__wine_dbg_set_functions
__wine_dll_register
__wine_dll_register
__wine_main_argc
__wine_main_argc
...
...
libs/wine/wine.map
View file @
2058f543
...
@@ -2,6 +2,7 @@ WINE_1.0
...
@@ -2,6 +2,7 @@ WINE_1.0
{
{
global:
global:
__wine_dbg_get_channel_flags;
__wine_dbg_get_channel_flags;
__wine_dbg_set_channel_flags;
__wine_dbg_set_functions;
__wine_dbg_set_functions;
__wine_dll_register;
__wine_dll_register;
__wine_main_argc;
__wine_main_argc;
...
...
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