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 |
* |
19 |
*/ |
20 |
|
21 |
/*****************************************************************************/ |
22 |
|
23 |
#ifndef _NAMES_H |
24 |
#define _NAMES_H |
25 |
|
26 |
#include <sys/types.h> |
27 |
|
28 |
/* ---------------------------------------------------------------------- */ |
29 |
|
30 |
extern const char *names_vendor(u_int16_t vendorid); |
31 |
extern const char *names_product(u_int16_t vendorid, u_int16_t productid); |
32 |
extern const char *names_class(u_int8_t classid); |
33 |
extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid); |
34 |
extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid, |
35 |
u_int8_t protocolid); |
36 |
extern const char *names_audioterminal(u_int16_t termt); |
37 |
extern const char *names_videoterminal(u_int16_t termt); |
38 |
extern const char *names_hid(u_int8_t hidd); |
39 |
extern const char *names_reporttag(u_int8_t rt); |
40 |
extern const char *names_huts(unsigned int data); |
41 |
extern const char *names_hutus(unsigned int data); |
42 |
extern const char *names_langid(u_int16_t langid); |
43 |
extern const char *names_physdes(u_int8_t ph); |
44 |
extern const char *names_bias(u_int8_t b); |
45 |
extern const char *names_countrycode(unsigned int countrycode); |
46 |
|
47 |
extern int get_vendor_string(char *buf, size_t size, u_int16_t vid); |
48 |
extern int get_product_string(char *buf, size_t size, u_int16_t vid, u_int16_t pid); |
49 |
|
50 |
extern int names_init(char *n); |
51 |
extern void names_exit(void); |
52 |
|
53 |
/* ---------------------------------------------------------------------- */ |
54 |
#endif /* _NAMES_H */ |