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
f9c89932
Commit
f9c89932
authored
Sep 01, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Introduce IOCTL_CONDRV_CTRL_EVENT ioctl.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d3503d8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
condrv.h
include/wine/condrv.h
+8
-0
console.c
server/console.c
+19
-0
trace.c
server/trace.c
+1
-0
No files found.
include/wine/condrv.h
View file @
f9c89932
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#define IOCTL_CONDRV_SET_INPUT_INFO CTL_CODE(FILE_DEVICE_CONSOLE, 14, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
#define IOCTL_CONDRV_SET_INPUT_INFO CTL_CODE(FILE_DEVICE_CONSOLE, 14, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
#define IOCTL_CONDRV_GET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 15, METHOD_BUFFERED, FILE_READ_PROPERTIES)
#define IOCTL_CONDRV_GET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 15, METHOD_BUFFERED, FILE_READ_PROPERTIES)
#define IOCTL_CONDRV_SET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 16, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
#define IOCTL_CONDRV_SET_TITLE CTL_CODE(FILE_DEVICE_CONSOLE, 16, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
#define IOCTL_CONDRV_CTRL_EVENT CTL_CODE(FILE_DEVICE_CONSOLE, 17, METHOD_BUFFERED, FILE_WRITE_PROPERTIES)
/* console output ioctls */
/* console output ioctls */
#define IOCTL_CONDRV_READ_OUTPUT CTL_CODE(FILE_DEVICE_CONSOLE, 30, METHOD_BUFFERED, FILE_READ_DATA)
#define IOCTL_CONDRV_READ_OUTPUT CTL_CODE(FILE_DEVICE_CONSOLE, 30, METHOD_BUFFERED, FILE_READ_DATA)
...
@@ -226,6 +227,13 @@ enum condrv_renderer_event_type
...
@@ -226,6 +227,13 @@ enum condrv_renderer_event_type
CONSOLE_RENDERER_EXIT_EVENT
,
CONSOLE_RENDERER_EXIT_EVENT
,
};
};
/* IOCTL_CONDRV_CTRL_EVENT params */
struct
condrv_ctrl_event
{
int
event
;
/* the event to send */
unsigned
int
group_id
;
/* the group to send the event to */
};
/* Wine specific values for console inheritance (params->ConsoleHandle) */
/* Wine specific values for console inheritance (params->ConsoleHandle) */
#define CONSOLE_HANDLE_ALLOC ((HANDLE)1)
#define CONSOLE_HANDLE_ALLOC ((HANDLE)1)
...
...
server/console.c
View file @
f9c89932
...
@@ -1844,6 +1844,25 @@ static int console_input_ioctl( struct fd *fd, ioctl_code_t code, struct async *
...
@@ -1844,6 +1844,25 @@ static int console_input_ioctl( struct fd *fd, ioctl_code_t code, struct async *
return
1
;
return
1
;
}
}
case
IOCTL_CONDRV_CTRL_EVENT
:
{
const
struct
condrv_ctrl_event
*
event
=
get_req_data
();
process_id_t
group
;
if
(
get_req_data_size
()
!=
sizeof
(
*
event
))
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
group
=
event
->
group_id
?
event
->
group_id
:
current
->
process
->
group_id
;
if
(
!
group
)
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
propagate_console_signal
(
console
,
event
->
event
,
group
);
return
!
get_error
();
}
default:
default:
set_error
(
STATUS_INVALID_HANDLE
);
set_error
(
STATUS_INVALID_HANDLE
);
return
0
;
return
0
;
...
...
server/trace.c
View file @
f9c89932
...
@@ -116,6 +116,7 @@ static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
...
@@ -116,6 +116,7 @@ static void dump_ioctl_code( const char *prefix, const ioctl_code_t *code )
#define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
#define CASE(c) case c: fprintf( stderr, "%s%s", prefix, #c ); break
CASE
(
IOCTL_CONDRV_ACTIVATE
);
CASE
(
IOCTL_CONDRV_ACTIVATE
);
CASE
(
IOCTL_CONDRV_ATTACH_RENDERER
);
CASE
(
IOCTL_CONDRV_ATTACH_RENDERER
);
CASE
(
IOCTL_CONDRV_CTRL_EVENT
);
CASE
(
IOCTL_CONDRV_FILL_OUTPUT
);
CASE
(
IOCTL_CONDRV_FILL_OUTPUT
);
CASE
(
IOCTL_CONDRV_GET_INPUT_INFO
);
CASE
(
IOCTL_CONDRV_GET_INPUT_INFO
);
CASE
(
IOCTL_CONDRV_GET_MODE
);
CASE
(
IOCTL_CONDRV_GET_MODE
);
...
...
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