1 |
/*****************************************************************************/ |
2 |
|
3 |
/* |
4 |
* names.h -- USB name database manipulation routines |
5 |
* |
6 |
* Copyright (C) 1999, 2000 Thomas Sailer (sailer@ife.ee.ethz.ch) |
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 |
|
27 |
#ifndef _NAMES_H |
28 |
#define _NAMES_H |
29 |
|
30 |
#include <stdint.h> |
31 |
|
32 |
/* ---------------------------------------------------------------------- */ |
33 |
|
34 |
extern const char *names_vendor(uint16_t vendorid); |
35 |
extern const char *names_product(uint16_t vendorid, uint16_t productid); |
36 |
extern const char *names_class(uint8_t classid); |
37 |
extern const char *names_subclass(uint8_t classid, uint8_t subclassid); |
38 |
extern const char *names_protocol(uint8_t classid, uint8_t subclassid, uint8_t protocolid); |
39 |
extern const char *names_audioterminal(uint16_t termt); |
40 |
extern const char *names_videoterminal(uint16_t termt); |
41 |
extern const char *names_hid(uint8_t hidd); |
42 |
extern const char *names_reporttag(uint8_t rt); |
43 |
extern const char *names_huts(unsigned int data); |
44 |
extern const char *names_hutus(unsigned int data); |
45 |
extern const char *names_langid(uint16_t langid); |
46 |
extern const char *names_physdes(uint8_t ph); |
47 |
extern const char *names_bias(uint8_t b); |
48 |
extern const char *names_countrycode(unsigned int countrycode); |
49 |
extern int names_init(char *n); |
50 |
|
51 |
/* ---------------------------------------------------------------------- */ |
52 |
#endif /* _NAMES_H */ |