1
/*****************************************************************************/
4
* names.h -- USB name database manipulation routines
6
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch)
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
* Copyright (C) 2005 Takahiro Hirofuchi
27
* - names_free() is added.
30
/*****************************************************************************/
35
#include <sys/types.h>
37
/* ---------------------------------------------------------------------- */
39
extern const char *names_vendor(u_int16_t vendorid);
40
extern const char *names_product(u_int16_t vendorid, u_int16_t productid);
41
extern const char *names_class(u_int8_t classid);
42
extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid);
43
extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid);
44
extern const char *names_audioterminal(u_int16_t termt);
45
extern const char *names_hid(u_int8_t hidd);
46
extern const char *names_reporttag(u_int8_t rt);
47
extern const char *names_huts(unsigned int data);
48
extern const char *names_hutus(unsigned int data);
49
extern const char *names_langid(u_int16_t langid);
50
extern const char *names_physdes(u_int8_t ph);
51
extern const char *names_bias(u_int8_t b);
52
extern const char *names_countrycode(unsigned int countrycode);
53
extern int names_init(char *n);
54
extern void names_free(void);
56
/* ---------------------------------------------------------------------- */