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
69549fc0
Commit
69549fc0
authored
Jun 15, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Implement IOCTL_AFD_GET_EVENTS.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e84cc0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
socket.c
dlls/ntdll/unix/socket.c
+6
-0
afd.h
include/wine/afd.h
+7
-0
sock.c
server/sock.c
+22
-0
No files found.
dlls/ntdll/unix/socket.c
View file @
69549fc0
...
...
@@ -1181,6 +1181,12 @@ NTSTATUS sock_ioctl( HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc, void *apc
break
;
}
case
IOCTL_AFD_GET_EVENTS
:
if
(
in_size
)
FIXME
(
"unexpected input size %u
\n
"
,
in_size
);
status
=
STATUS_BAD_DEVICE_TYPE
;
break
;
case
IOCTL_AFD_RECV
:
{
const
struct
afd_recv_params
*
params
=
in_buffer
;
...
...
include/wine/afd.h
View file @
69549fc0
...
...
@@ -36,6 +36,7 @@
#define IOCTL_AFD_RECV CTL_CODE(FILE_DEVICE_BEEP, 0x805, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_AFD_POLL CTL_CODE(FILE_DEVICE_BEEP, 0x809, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_EVENT_SELECT CTL_CODE(FILE_DEVICE_BEEP, 0x821, METHOD_NEITHER, FILE_ANY_ACCESS)
#define IOCTL_AFD_GET_EVENTS CTL_CODE(FILE_DEVICE_BEEP, 0x822, METHOD_NEITHER, FILE_ANY_ACCESS)
enum
afd_poll_bit
{
...
...
@@ -125,6 +126,12 @@ struct afd_event_select_params_32
int
mask
;
};
struct
afd_get_events_params
{
int
flags
;
NTSTATUS
status
[
13
];
};
#define IOCTL_AFD_WINE_CREATE CTL_CODE(FILE_DEVICE_NETWORK, 200, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_WINE_ACCEPT CTL_CODE(FILE_DEVICE_NETWORK, 201, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_AFD_WINE_ACCEPT_INTO CTL_CODE(FILE_DEVICE_NETWORK, 202, METHOD_BUFFERED, FILE_ANY_ACCESS)
...
...
server/sock.c
View file @
69549fc0
...
...
@@ -2011,6 +2011,28 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
}
return
1
;
case
IOCTL_AFD_GET_EVENTS
:
{
struct
afd_get_events_params
params
=
{
0
};
unsigned
int
i
;
if
(
get_reply_max_size
()
<
sizeof
(
params
))
{
set_error
(
STATUS_INVALID_PARAMETER
);
return
0
;
}
params
.
flags
=
sock
->
pending_events
&
sock
->
mask
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
params
.
status
);
++
i
)
params
.
status
[
i
]
=
sock_get_ntstatus
(
sock
->
errors
[
i
]
);
sock
->
pending_events
=
0
;
sock_reselect
(
sock
);
set_reply_data
(
&
params
,
sizeof
(
params
)
);
return
0
;
}
case
IOCTL_AFD_EVENT_SELECT
:
{
struct
event
*
event
=
NULL
;
...
...
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