sanei_pio.h

00001 /* sane - Scanner Access Now Easy.
00002    Copyright (C) 1998 Christian Bucher
00003    Copyright (C) 1998 Kling & Hautzinger GmbH
00004    This file is part of the SANE package.
00005 
00006    This program is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU General Public License as
00008    published by the Free Software Foundation; either version 2 of the
00009    License, or (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful, but
00012    WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00019    MA 02111-1307, USA.
00020 
00021    As a special exception, the authors of SANE give permission for
00022    additional uses of the libraries contained in this release of SANE.
00023 
00024    The exception is that, if you link a SANE library with other files
00025    to produce an executable, this does not by itself cause the
00026    resulting executable to be covered by the GNU General Public
00027    License.  Your use of that executable is in no way restricted on
00028    account of linking the SANE library code into it.
00029 
00030    This exception does not, however, invalidate any other reasons why
00031    the executable file might be covered by the GNU General Public
00032    License.
00033 
00034    If you submit changes to SANE to the maintainers to be included in
00035    a subsequent release, you agree by submitting the changes that
00036    those changes may be distributed with this exception intact.
00037 
00038    If you write modifications of your own for SANE, it is your choice
00039    whether to permit this exception to apply to your modifications.
00040    If you do not wish that, delete this exception notice.  */
00041 
00042 #ifndef sanei_pio_h
00043 #define sanei_pio_h
00044 
00045 #include <sys/types.h>
00046 
00047 #include <sane/sane.h>
00048 
00049 extern SANE_Status      sanei_pio_open  (const char * dev, int * fd);
00050 extern void             sanei_pio_close (int fd);
00051 extern int              sanei_pio_read  (int fd, u_char * buf, int n);
00052 extern int              sanei_pio_write (int fd, const u_char * buf, int n);
00053 
00054 #endif /* sanei_pio_h */
00055 

Generated on Fri Oct 3 04:45:39 2008 for SANEI by  doxygen 1.5.1