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
7608538b
Commit
7608538b
authored
Sep 20, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Remove unnecessary internal bus ids.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e3f9408
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
20 deletions
+3
-20
bus_iohid.c
dlls/winebus.sys/bus_iohid.c
+0
-3
bus_sdl.c
dlls/winebus.sys/bus_sdl.c
+0
-2
bus_udev.c
dlls/winebus.sys/bus_udev.c
+0
-6
main.c
dlls/winebus.sys/main.c
+1
-1
unixlib.c
dlls/winebus.sys/unixlib.c
+0
-4
unixlib.h
dlls/winebus.sys/unixlib.h
+2
-4
No files found.
dlls/winebus.sys/bus_iohid.c
View file @
7608538b
...
@@ -106,8 +106,6 @@ static IOHIDManagerRef hid_manager;
...
@@ -106,8 +106,6 @@ static IOHIDManagerRef hid_manager;
static
CFRunLoopRef
run_loop
;
static
CFRunLoopRef
run_loop
;
static
struct
list
event_queue
=
LIST_INIT
(
event_queue
);
static
struct
list
event_queue
=
LIST_INIT
(
event_queue
);
static
struct
list
device_list
=
LIST_INIT
(
device_list
);
static
struct
list
device_list
=
LIST_INIT
(
device_list
);
static
const
WCHAR
busidW
[]
=
{
'I'
,
'O'
,
'H'
,
'I'
,
'D'
,
0
};
static
struct
iohid_bus_options
options
;
static
struct
iohid_bus_options
options
;
struct
platform_private
struct
platform_private
...
@@ -266,7 +264,6 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void *
...
@@ -266,7 +264,6 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void *
{
{
struct
device_desc
desc
=
struct
device_desc
desc
=
{
{
.
busid
=
busidW
,
.
input
=
-
1
,
.
input
=
-
1
,
.
serialnumber
=
{
"0000"
},
.
serialnumber
=
{
"0000"
},
};
};
...
...
dlls/winebus.sys/bus_sdl.c
View file @
7608538b
...
@@ -65,7 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
...
@@ -65,7 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(plugplay);
WINE_DECLARE_DEBUG_CHANNEL
(
hid_report
);
WINE_DECLARE_DEBUG_CHANNEL
(
hid_report
);
static
pthread_mutex_t
sdl_cs
=
PTHREAD_MUTEX_INITIALIZER
;
static
pthread_mutex_t
sdl_cs
=
PTHREAD_MUTEX_INITIALIZER
;
static
const
WCHAR
sdl_busidW
[]
=
{
'S'
,
'D'
,
'L'
,
'J'
,
'O'
,
'Y'
,
0
};
static
struct
sdl_bus_options
options
;
static
struct
sdl_bus_options
options
;
static
void
*
sdl_handle
=
NULL
;
static
void
*
sdl_handle
=
NULL
;
...
@@ -712,7 +711,6 @@ static void sdl_add_device(unsigned int index)
...
@@ -712,7 +711,6 @@ static void sdl_add_device(unsigned int index)
{
{
struct
device_desc
desc
=
struct
device_desc
desc
=
{
{
.
busid
=
sdl_busidW
,
.
input
=
-
1
,
.
input
=
-
1
,
.
manufacturer
=
{
"SDL"
},
.
manufacturer
=
{
"SDL"
},
.
serialnumber
=
{
"0000"
},
.
serialnumber
=
{
"0000"
},
...
...
dlls/winebus.sys/bus_udev.c
View file @
7608538b
...
@@ -100,9 +100,6 @@ static struct udev_monitor *udev_monitor;
...
@@ -100,9 +100,6 @@ static struct udev_monitor *udev_monitor;
static
int
deviceloop_control
[
2
];
static
int
deviceloop_control
[
2
];
static
struct
list
event_queue
=
LIST_INIT
(
event_queue
);
static
struct
list
event_queue
=
LIST_INIT
(
event_queue
);
static
struct
list
device_list
=
LIST_INIT
(
device_list
);
static
struct
list
device_list
=
LIST_INIT
(
device_list
);
static
const
WCHAR
hidraw_busidW
[]
=
{
'H'
,
'I'
,
'D'
,
'R'
,
'A'
,
'W'
,
0
};
static
const
WCHAR
lnxev_busidW
[]
=
{
'L'
,
'N'
,
'X'
,
'E'
,
'V'
,
0
};
static
struct
udev_bus_options
options
;
static
struct
udev_bus_options
options
;
struct
platform_private
struct
platform_private
...
@@ -985,7 +982,6 @@ static void udev_add_device(struct udev_device *dev)
...
@@ -985,7 +982,6 @@ static void udev_add_device(struct udev_device *dev)
subsystem
=
udev_device_get_subsystem
(
dev
);
subsystem
=
udev_device_get_subsystem
(
dev
);
if
(
!
strcmp
(
subsystem
,
"hidraw"
))
if
(
!
strcmp
(
subsystem
,
"hidraw"
))
{
{
desc
.
busid
=
hidraw_busidW
;
if
(
!
desc
.
manufacturer
[
0
])
strcpy
(
desc
.
manufacturer
,
"hidraw"
);
if
(
!
desc
.
manufacturer
[
0
])
strcpy
(
desc
.
manufacturer
,
"hidraw"
);
#ifdef HAVE_LINUX_HIDRAW_H
#ifdef HAVE_LINUX_HIDRAW_H
...
@@ -998,8 +994,6 @@ static void udev_add_device(struct udev_device *dev)
...
@@ -998,8 +994,6 @@ static void udev_add_device(struct udev_device *dev)
{
{
struct
input_id
device_id
=
{
0
};
struct
input_id
device_id
=
{
0
};
desc
.
busid
=
lnxev_busidW
;
if
(
ioctl
(
fd
,
EVIOCGID
,
&
device_id
)
<
0
)
if
(
ioctl
(
fd
,
EVIOCGID
,
&
device_id
)
<
0
)
WARN
(
"ioctl(EVIOCGID) failed: %d %s
\n
"
,
errno
,
strerror
(
errno
));
WARN
(
"ioctl(EVIOCGID) failed: %d %s
\n
"
,
errno
,
strerror
(
errno
));
else
else
...
...
dlls/winebus.sys/main.c
View file @
7608538b
...
@@ -294,7 +294,7 @@ static DEVICE_OBJECT *bus_create_hid_device(struct device_desc *desc, struct uni
...
@@ -294,7 +294,7 @@ static DEVICE_OBJECT *bus_create_hid_device(struct device_desc *desc, struct uni
TRACE
(
"desc %s, unix_device %p
\n
"
,
debugstr_device_desc
(
desc
),
unix_device
);
TRACE
(
"desc %s, unix_device %p
\n
"
,
debugstr_device_desc
(
desc
),
unix_device
);
swprintf
(
dev_name
,
ARRAY_SIZE
(
dev_name
),
L"
\\
Device
\\
%s#%p"
,
desc
->
busid
,
unix_device
);
swprintf
(
dev_name
,
ARRAY_SIZE
(
dev_name
),
L"
\\
Device
\\
WINEBUS#%p"
,
unix_device
);
RtlInitUnicodeString
(
&
nameW
,
dev_name
);
RtlInitUnicodeString
(
&
nameW
,
dev_name
);
status
=
IoCreateDevice
(
driver_obj
,
sizeof
(
struct
device_extension
),
&
nameW
,
0
,
0
,
FALSE
,
&
device
);
status
=
IoCreateDevice
(
driver_obj
,
sizeof
(
struct
device_extension
),
&
nameW
,
0
,
0
,
FALSE
,
&
device
);
if
(
status
)
if
(
status
)
...
...
dlls/winebus.sys/unixlib.c
View file @
7608538b
...
@@ -139,10 +139,8 @@ static const struct unix_device_vtbl mouse_vtbl =
...
@@ -139,10 +139,8 @@ static const struct unix_device_vtbl mouse_vtbl =
mouse_set_feature_report
,
mouse_set_feature_report
,
};
};
static
const
WCHAR
mouse_bus_id
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'M'
,
'O'
,
'U'
,
'S'
,
'E'
,
0
};
static
const
struct
device_desc
mouse_device_desc
=
static
const
struct
device_desc
mouse_device_desc
=
{
{
.
busid
=
mouse_bus_id
,
.
vid
=
0x845e
,
.
vid
=
0x845e
,
.
pid
=
0x0001
,
.
pid
=
0x0001
,
.
input
=
-
1
,
.
input
=
-
1
,
...
@@ -239,10 +237,8 @@ static const struct unix_device_vtbl keyboard_vtbl =
...
@@ -239,10 +237,8 @@ static const struct unix_device_vtbl keyboard_vtbl =
keyboard_set_feature_report
,
keyboard_set_feature_report
,
};
};
static
const
WCHAR
keyboard_bus_id
[]
=
{
'W'
,
'I'
,
'N'
,
'E'
,
'K'
,
'E'
,
'Y'
,
'B'
,
'O'
,
'A'
,
'R'
,
'D'
,
0
};
static
const
struct
device_desc
keyboard_device_desc
=
static
const
struct
device_desc
keyboard_device_desc
=
{
{
.
busid
=
keyboard_bus_id
,
.
vid
=
0x845e
,
.
vid
=
0x845e
,
.
pid
=
0x0002
,
.
pid
=
0x0002
,
.
input
=
-
1
,
.
input
=
-
1
,
...
...
dlls/winebus.sys/unixlib.h
View file @
7608538b
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
struct
device_desc
struct
device_desc
{
{
const
WCHAR
*
busid
;
DWORD
vid
;
DWORD
vid
;
DWORD
pid
;
DWORD
pid
;
DWORD
version
;
DWORD
version
;
...
@@ -139,9 +138,8 @@ enum unix_funcs
...
@@ -139,9 +138,8 @@ enum unix_funcs
static
inline
const
char
*
debugstr_device_desc
(
struct
device_desc
*
desc
)
static
inline
const
char
*
debugstr_device_desc
(
struct
device_desc
*
desc
)
{
{
if
(
!
desc
)
return
"(null)"
;
if
(
!
desc
)
return
"(null)"
;
return
wine_dbg_sprintf
(
"{busid %s, vid %04x, pid %04x, version %04x, input %d, uid %08x, is_gamepad %u}"
,
return
wine_dbg_sprintf
(
"{vid %04x, pid %04x, version %04x, input %d, uid %08x, is_gamepad %u}"
,
debugstr_w
(
desc
->
busid
),
desc
->
vid
,
desc
->
pid
,
desc
->
version
,
desc
->
vid
,
desc
->
pid
,
desc
->
version
,
desc
->
input
,
desc
->
uid
,
desc
->
is_gamepad
);
desc
->
input
,
desc
->
uid
,
desc
->
is_gamepad
);
}
}
#endif
/* __WINEBUS_UNIXLIB_H */
#endif
/* __WINEBUS_UNIXLIB_H */
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