Deleted Added
full compact
usbhid.h (130030) usbhid.h (187994)
1/* $NetBSD: usb.h,v 1.8 2000/08/13 22:22:02 augustss Exp $ */
2
3/*
4 * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/* $NetBSD: usb.h,v 1.8 2000/08/13 22:22:02 augustss Exp $ */
2
3/*
4 * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/lib/libusbhid/usbhid.h 130030 2004-06-03 15:04:24Z des $
28 * $FreeBSD: head/lib/libusbhid/usbhid.h 187994 2009-02-02 00:49:39Z alfred $
29 *
30 */
31
32#include <sys/cdefs.h>
33
34typedef struct report_desc *report_desc_t;
35
36typedef struct hid_data *hid_data_t;

--- 45 unchanged lines hidden (view full) ---

82#define HID_USAGE(u) ((u) & 0xffff)
83
84__BEGIN_DECLS
85
86/* Obtaining a report descriptor, descr.c: */
87report_desc_t hid_get_report_desc(int file);
88report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
89void hid_dispose_report_desc(report_desc_t);
29 *
30 */
31
32#include <sys/cdefs.h>
33
34typedef struct report_desc *report_desc_t;
35
36typedef struct hid_data *hid_data_t;

--- 45 unchanged lines hidden (view full) ---

82#define HID_USAGE(u) ((u) & 0xffff)
83
84__BEGIN_DECLS
85
86/* Obtaining a report descriptor, descr.c: */
87report_desc_t hid_get_report_desc(int file);
88report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
89void hid_dispose_report_desc(report_desc_t);
90int hid_get_report_id(int file);
91int hid_set_immed(int fd, int enable);
90
91/* Parsing of a HID report descriptor, parse.c: */
92hid_data_t hid_start_parse(report_desc_t d, int kindset, int id);
93void hid_end_parse(hid_data_t s);
94int hid_get_item(hid_data_t s, hid_item_t *h);
95int hid_report_size(report_desc_t d, enum hid_kind k, int id);
96int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h, int id);
97

--- 12 unchanged lines hidden ---
92
93/* Parsing of a HID report descriptor, parse.c: */
94hid_data_t hid_start_parse(report_desc_t d, int kindset, int id);
95void hid_end_parse(hid_data_t s);
96int hid_get_item(hid_data_t s, hid_item_t *h);
97int hid_report_size(report_desc_t d, enum hid_kind k, int id);
98int hid_locate(report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h, int id);
99

--- 12 unchanged lines hidden ---