^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * names.h -- USB name database manipulation routines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (C) 2005 Takahiro Hirofuchi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * - names_free() is added.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _NAMES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _NAMES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <sys/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* used by usbip_common.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern const char *names_vendor(u_int16_t vendorid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern const char *names_product(u_int16_t vendorid, u_int16_t productid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern const char *names_class(u_int8_t classid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) u_int8_t protocolid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern int names_init(char *n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern void names_free(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #endif /* _NAMES_H */