winebus.sys: Ensure unixlib function tables and enum stay in sync.

This commit is contained in:
Brendan Shanks 2023-08-31 14:19:51 -07:00 committed by Alexandre Julliard
parent 9139d8705d
commit 516c6af58e
2 changed files with 3 additions and 0 deletions

View file

@ -351,6 +351,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
unix_device_set_feature_report, unix_device_set_feature_report,
}; };
C_ASSERT(ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count);
void bus_event_cleanup(struct bus_event *event) void bus_event_cleanup(struct bus_event *event)
{ {
struct unix_device *iface = (struct unix_device *)(UINT_PTR)event->device; struct unix_device *iface = (struct unix_device *)(UINT_PTR)event->device;

View file

@ -141,6 +141,7 @@ enum unix_funcs
device_set_output_report, device_set_output_report,
device_get_feature_report, device_get_feature_report,
device_set_feature_report, device_set_feature_report,
unix_funcs_count,
}; };
static inline const char *debugstr_device_desc(struct device_desc *desc) static inline const char *debugstr_device_desc(struct device_desc *desc)