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
b68138a6
Commit
b68138a6
authored
Jul 17, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce IOCTL_CONDRV_ACTIVATE ioctl.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6039b785
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
condrv.h
include/wine/condrv.h
+1
-0
console.c
server/console.c
+15
-0
trace.c
server/trace.c
+1
-0
No files found.
include/wine/condrv.h
View file @
b68138a6
...
...
@@ -37,6 +37,7 @@
/* console output ioctls */
#define IOCTL_CONDRV_GET_OUTPUT_INFO CTL_CODE(FILE_DEVICE_CONSOLE, 32, METHOD_BUFFERED, FILE_READ_PROPERTIES)
#define IOCTL_CONDRV_SET_OUTPUT_INFO CTL_CODE(FILE_DEVICE_CONSOLE, 33, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
#define IOCTL_CONDRV_ACTIVATE CTL_CODE(FILE_DEVICE_CONSOLE, 34, METHOD_BUFFERED, FILE_WRITE_DATA)
#define IOCTL_CONDRV_FILL_OUTPUT CTL_CODE(FILE_DEVICE_CONSOLE, 35, METHOD_BUFFERED, FILE_WRITE_DATA)
/* console renderer ioctls */
...
...
server/console.c
View file @
b68138a6
...
...
@@ -1694,6 +1694,21 @@ static int screen_buffer_ioctl( struct fd *fd, ioctl_code_t code, struct async *
return
set_output_info
(
screen_buffer
,
params
,
get_req_data_size
()
-
sizeof
(
*
params
)
);
}
case
IOCTL_CONDRV_ACTIVATE
:
if
(
!
screen_buffer
->
input
)
{
set_error
(
STATUS_INVALID_HANDLE
);
return
0
;
}
if
(
screen_buffer
!=
screen_buffer
->
input
->
active
)
{
if
(
screen_buffer
->
input
->
active
)
release_object
(
screen_buffer
->
input
->
active
);
screen_buffer
->
input
->
active
=
(
struct
screen_buffer
*
)
grab_object
(
screen_buffer
);
generate_sb_initial_events
(
screen_buffer
->
input
);
}
return
1
;
case
IOCTL_CONDRV_FILL_OUTPUT
:
{
const
struct
condrv_fill_output_params
*
params
=
get_req_data
();
...
...
server/trace.c
View file @
b68138a6
...
...
@@ -114,6 +114,7 @@ static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
switch
(
*
code
)
{
#define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
CASE
(
IOCTL_CONDRV_ACTIVATE
);
CASE
(
IOCTL_CONDRV_ATTACH_RENDERER
);
CASE
(
IOCTL_CONDRV_FILL_OUTPUT
);
CASE
(
IOCTL_CONDRV_GET_INPUT_INFO
);
...
...
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