Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
names.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 
3 /*
4  * names.h -- USB name database manipulation routines
5  *
6  * Copyright (C) 1999, 2000 Thomas Sailer ([email protected])
7  *
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.
12  *
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.
17  *
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.
21  *
22  *
23  */
24 
25 /*
26  * Copyright (C) 2005 Takahiro Hirofuchi
27  * - names_free() is added.
28  */
29 
30 /*****************************************************************************/
31 
32 #ifndef _NAMES_H
33 #define _NAMES_H
34 
35 #include <sys/types.h>
36 
37 /* ---------------------------------------------------------------------- */
38 
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);
55 
56 /* ---------------------------------------------------------------------- */
57 #endif /* _NAMES_H */