usbvar.h revision 188945
1290001Sglebius/* $NetBSD: usbvar.h,v 1.2 1999/05/11 21:15:46 augustss Exp $ */ 2290001Sglebius 3290001Sglebius/* 4290001Sglebius * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org> 5290001Sglebius * All rights reserved. 6290001Sglebius * 7290001Sglebius * Redistribution and use in source and binary forms, with or without 8290001Sglebius * modification, are permitted provided that the following conditions 9290001Sglebius * are met: 10290001Sglebius * 1. Redistributions of source code must retain the above copyright 11290001Sglebius * notice, this list of conditions and the following disclaimer. 12290001Sglebius * 2. Redistributions in binary form must reproduce the above copyright 13290001Sglebius * notice, this list of conditions and the following disclaimer in the 14290001Sglebius * documentation and/or other materials provided with the distribution. 15290001Sglebius * 16290001Sglebius * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17290001Sglebius * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18290001Sglebius * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19290001Sglebius * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20290001Sglebius * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21290001Sglebius * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22290001Sglebius * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23290001Sglebius * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24290001Sglebius * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25290001Sglebius * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26290001Sglebius * SUCH DAMAGE. 27290001Sglebius * 28290001Sglebius * $FreeBSD: head/lib/libusbhid/usbvar.h 188945 2009-02-23 18:36:54Z thompsa $ 29290001Sglebius * 30290001Sglebius */ 31290001Sglebius 32290001Sglebiusstruct report_desc { 33290001Sglebius unsigned int size; 34290001Sglebius unsigned char data[1]; 35290001Sglebius}; 36290001Sglebius 37290001Sglebius/* internal backwards compatibility functions */ 38290001Sglebius 39290001Sglebius#ifdef HID_COMPAT7 40290001Sglebiusint hid_set_immed_compat7(int fd, int enable); 41290001Sglebiusint hid_get_report_id_compat7(int fd); 42290001Sglebiusreport_desc_t hid_get_report_desc_compat7(int fd); 43290001Sglebius#endif 44290001Sglebius