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
2a2fc11d
Commit
2a2fc11d
authored
Sep 16, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Remove the now useless device_compare callback.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
421a6f53
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
54 deletions
+0
-54
bus_iohid.c
dlls/winebus.sys/bus_iohid.c
+0
-11
bus_sdl.c
dlls/winebus.sys/bus_sdl.c
+0
-6
bus_udev.c
dlls/winebus.sys/bus_udev.c
+0
-9
unix_private.h
dlls/winebus.sys/unix_private.h
+0
-1
unixlib.c
dlls/winebus.sys/unixlib.c
+0
-20
unixlib.h
dlls/winebus.sys/unixlib.h
+0
-7
No files found.
dlls/winebus.sys/bus_iohid.c
View file @
2a2fc11d
...
...
@@ -161,16 +161,6 @@ static void iohid_device_destroy(struct unix_device *iface)
{
}
static
int
iohid_device_compare
(
struct
unix_device
*
iface
,
void
*
context
)
{
struct
platform_private
*
private
=
impl_from_unix_device
(
iface
);
IOHIDDeviceRef
dev2
=
(
IOHIDDeviceRef
)
context
;
if
(
private
->
device
!=
dev2
)
return
1
;
else
return
0
;
}
static
NTSTATUS
iohid_device_start
(
struct
unix_device
*
iface
)
{
DWORD
length
;
...
...
@@ -273,7 +263,6 @@ static void iohid_device_set_feature_report(struct unix_device *iface, HID_XFER_
static
const
struct
unix_device_vtbl
iohid_device_vtbl
=
{
iohid_device_destroy
,
iohid_device_compare
,
iohid_device_start
,
iohid_device_stop
,
iohid_device_get_report_descriptor
,
...
...
dlls/winebus.sys/bus_sdl.c
View file @
2a2fc11d
...
...
@@ -497,11 +497,6 @@ static void sdl_device_destroy(struct unix_device *iface)
{
}
static
int
sdl_device_compare
(
struct
unix_device
*
iface
,
void
*
context
)
{
return
impl_from_unix_device
(
iface
)
->
id
-
PtrToUlong
(
context
);
}
static
NTSTATUS
sdl_device_start
(
struct
unix_device
*
iface
)
{
struct
platform_private
*
ext
=
impl_from_unix_device
(
iface
);
...
...
@@ -596,7 +591,6 @@ static void sdl_device_set_feature_report(struct unix_device *iface, HID_XFER_PA
static
const
struct
unix_device_vtbl
sdl_device_vtbl
=
{
sdl_device_destroy
,
sdl_device_compare
,
sdl_device_start
,
sdl_device_stop
,
sdl_device_get_reportdescriptor
,
...
...
dlls/winebus.sys/bus_udev.c
View file @
2a2fc11d
...
...
@@ -619,13 +619,6 @@ static void hidraw_device_destroy(struct unix_device *iface)
udev_device_unref
(
private
->
udev_device
);
}
static
int
udev_device_compare
(
struct
unix_device
*
iface
,
void
*
platform_dev
)
{
struct
udev_device
*
dev1
=
impl_from_unix_device
(
iface
)
->
udev_device
;
struct
udev_device
*
dev2
=
platform_dev
;
return
strcmp
(
udev_device_get_syspath
(
dev1
),
udev_device_get_syspath
(
dev2
));
}
static
NTSTATUS
hidraw_device_start
(
struct
unix_device
*
iface
)
{
EnterCriticalSection
(
&
udev_cs
);
...
...
@@ -796,7 +789,6 @@ static void hidraw_device_set_feature_report(struct unix_device *iface, HID_XFER
static
const
struct
unix_device_vtbl
hidraw_device_vtbl
=
{
hidraw_device_destroy
,
udev_device_compare
,
hidraw_device_start
,
hidraw_device_stop
,
hidraw_device_get_report_descriptor
,
...
...
@@ -898,7 +890,6 @@ static void lnxev_device_set_feature_report(struct unix_device *iface, HID_XFER_
static
const
struct
unix_device_vtbl
lnxev_device_vtbl
=
{
lnxev_device_destroy
,
udev_device_compare
,
lnxev_device_start
,
lnxev_device_stop
,
lnxev_device_get_report_descriptor
,
...
...
dlls/winebus.sys/unix_private.h
View file @
2a2fc11d
...
...
@@ -32,7 +32,6 @@
struct
unix_device_vtbl
{
void
(
*
destroy
)(
struct
unix_device
*
iface
);
int
(
*
compare
)(
struct
unix_device
*
iface
,
void
*
platform_dev
);
NTSTATUS
(
*
start
)(
struct
unix_device
*
iface
);
void
(
*
stop
)(
struct
unix_device
*
iface
);
NTSTATUS
(
*
get_report_descriptor
)(
struct
unix_device
*
iface
,
BYTE
*
buffer
,
DWORD
length
,
DWORD
*
out_length
);
...
...
dlls/winebus.sys/unixlib.c
View file @
2a2fc11d
...
...
@@ -51,11 +51,6 @@ static void mouse_destroy(struct unix_device *iface)
hid_descriptor_free
(
&
impl
->
desc
);
}
static
int
mouse_compare
(
struct
unix_device
*
iface
,
void
*
context
)
{
return
0
;
}
static
NTSTATUS
mouse_start
(
struct
unix_device
*
iface
)
{
struct
mouse_device
*
impl
=
mouse_from_unix_device
(
iface
);
...
...
@@ -111,7 +106,6 @@ static void mouse_set_feature_report(struct unix_device *iface, HID_XFER_PACKET
static
const
struct
unix_device_vtbl
mouse_vtbl
=
{
mouse_destroy
,
mouse_compare
,
mouse_start
,
mouse_stop
,
mouse_get_report_descriptor
,
...
...
@@ -155,11 +149,6 @@ static void keyboard_destroy(struct unix_device *iface)
hid_descriptor_free
(
&
impl
->
desc
);
}
static
int
keyboard_compare
(
struct
unix_device
*
iface
,
void
*
context
)
{
return
0
;
}
static
NTSTATUS
keyboard_start
(
struct
unix_device
*
iface
)
{
struct
keyboard_device
*
impl
=
keyboard_from_unix_device
(
iface
);
...
...
@@ -215,7 +204,6 @@ static void keyboard_set_feature_report(struct unix_device *iface, HID_XFER_PACK
static
const
struct
unix_device_vtbl
keyboard_vtbl
=
{
keyboard_destroy
,
keyboard_compare
,
keyboard_start
,
keyboard_stop
,
keyboard_get_report_descriptor
,
...
...
@@ -275,13 +263,6 @@ static NTSTATUS unix_device_remove(void *args)
return
STATUS_SUCCESS
;
}
static
NTSTATUS
unix_device_compare
(
void
*
args
)
{
struct
device_compare_params
*
params
=
args
;
struct
unix_device
*
iface
=
params
->
iface
;
return
iface
->
vtbl
->
compare
(
iface
,
params
->
context
);
}
static
NTSTATUS
unix_device_start
(
void
*
args
)
{
struct
unix_device
*
iface
=
args
;
...
...
@@ -333,7 +314,6 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
mouse_device_create
,
keyboard_device_create
,
unix_device_remove
,
unix_device_compare
,
unix_device_start
,
unix_device_get_report_descriptor
,
unix_device_set_output_report
,
...
...
dlls/winebus.sys/unixlib.h
View file @
2a2fc11d
...
...
@@ -98,12 +98,6 @@ struct device_create_params
struct
unix_device
*
device
;
};
struct
device_compare_params
{
struct
unix_device
*
iface
;
void
*
context
;
};
struct
device_descriptor_params
{
struct
unix_device
*
iface
;
...
...
@@ -133,7 +127,6 @@ enum unix_funcs
mouse_create
,
keyboard_create
,
device_remove
,
device_compare
,
device_start
,
device_get_report_descriptor
,
device_set_output_report
,
...
...
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