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
60740e87
Commit
60740e87
authored
Sep 03, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Remove the now useless bus_enumerate_hid_devices.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ce5ba8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
bus.h
dlls/winebus.sys/bus.h
+0
-3
main.c
dlls/winebus.sys/main.c
+0
-25
No files found.
dlls/winebus.sys/bus.h
View file @
60740e87
...
...
@@ -27,15 +27,12 @@
#include "unixlib.h"
typedef
int
(
*
enum_func
)(
DEVICE_OBJECT
*
device
,
void
*
context
);
struct
unix_device
*
get_unix_device
(
DEVICE_OBJECT
*
device
)
DECLSPEC_HIDDEN
;
/* HID Plug and Play Bus */
DEVICE_OBJECT
*
bus_create_hid_device
(
struct
device_desc
*
desc
,
struct
unix_device
*
unix_device
)
DECLSPEC_HIDDEN
;
DEVICE_OBJECT
*
bus_find_hid_device
(
const
WCHAR
*
bus_id
,
void
*
platform_dev
)
DECLSPEC_HIDDEN
;
void
process_hid_report
(
DEVICE_OBJECT
*
device
,
BYTE
*
report
,
DWORD
length
)
DECLSPEC_HIDDEN
;
DEVICE_OBJECT
*
bus_enumerate_hid_devices
(
const
WCHAR
*
bus_id
,
enum_func
function
,
void
*
context
)
DECLSPEC_HIDDEN
;
/* General Bus Functions */
BOOL
is_xbox_gamepad
(
WORD
vid
,
WORD
pid
)
DECLSPEC_HIDDEN
;
...
...
dlls/winebus.sys/main.c
View file @
60740e87
...
...
@@ -408,31 +408,6 @@ DEVICE_OBJECT *bus_find_hid_device(const WCHAR *bus_id, void *platform_dev)
return
ret
;
}
DEVICE_OBJECT
*
bus_enumerate_hid_devices
(
const
WCHAR
*
bus_id
,
enum_func
function
,
void
*
context
)
{
struct
device_extension
*
ext
,
*
next
;
DEVICE_OBJECT
*
ret
=
NULL
;
int
cont
;
TRACE
(
"bus_id %s
\n
"
,
debugstr_w
(
bus_id
));
EnterCriticalSection
(
&
device_list_cs
);
LIST_FOR_EACH_ENTRY_SAFE
(
ext
,
next
,
&
device_list
,
struct
device_extension
,
entry
)
{
if
(
strcmpW
(
ext
->
desc
.
busid
,
bus_id
))
continue
;
LeaveCriticalSection
(
&
device_list_cs
);
cont
=
function
(
ext
->
device
,
context
);
EnterCriticalSection
(
&
device_list_cs
);
if
(
!
cont
)
{
ret
=
ext
->
device
;
break
;
}
}
LeaveCriticalSection
(
&
device_list_cs
);
return
ret
;
}
static
void
bus_unlink_hid_device
(
DEVICE_OBJECT
*
device
)
{
struct
device_extension
*
ext
=
(
struct
device_extension
*
)
device
->
DeviceExtension
;
...
...
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