Fix leaking file descriptors on error.
[kugel-rb.git] / firmware / export / ifp_usb_serial.h
blobb56e5fff86c30be381f8d809e19384c8ad36d2bd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Tomasz Malesinski
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _USB_SERIAL_H_
22 #define _USB_SERIAL_H_
24 void usb_serial_init(void);
25 void usb_serial_put_byte(int b);
26 int usb_serial_get_byte(void);
27 int usb_serial_try_put_byte(int b);
28 int usb_serial_try_get_byte(void);
30 #endif