2 * Copyright 2021 RĂ©mi Bernon for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINEBUS_UNIXLIB_H
20 #define __WINEBUS_UNIXLIB_H
27 #include <ddk/hidclass.h>
30 #include "wine/debug.h"
31 #include "wine/list.h"
42 WCHAR manufacturer
[MAX_PATH
];
43 WCHAR product
[MAX_PATH
];
44 WCHAR serialnumber
[MAX_PATH
];
47 struct sdl_bus_options
49 BOOL split_controllers
;
51 /* freed after bus_init */
56 struct udev_bus_options
63 struct iohid_bus_options
70 BUS_EVENT_TYPE_DEVICE_REMOVED
,
71 BUS_EVENT_TYPE_DEVICE_CREATED
,
72 BUS_EVENT_TYPE_INPUT_REPORT
,
83 struct device_desc desc
;
94 struct device_create_params
96 struct device_desc desc
;
100 struct device_remove_params
105 struct device_start_params
110 struct device_descriptor_params
118 struct device_report_params
121 HID_XFER_PACKET
*packet
;
140 device_get_report_descriptor
,
141 device_set_output_report
,
142 device_get_feature_report
,
143 device_set_feature_report
,
146 static inline const char *debugstr_device_desc(struct device_desc
*desc
)
148 if (!desc
) return "(null)";
149 return wine_dbg_sprintf("{vid %04x, pid %04x, version %04x, input %d, uid %08x, is_gamepad %u}",
150 desc
->vid
, desc
->pid
, desc
->version
, desc
->input
, desc
->uid
, desc
->is_gamepad
);
153 #endif /* __WINEBUS_UNIXLIB_H */