SANEI  1.0.27-241-gdc8b27c1-dirty
sanei_ab306.h
1 /* sane - Scanner Access Now Easy.
2  Copyright (C) 1997 Andreas Czechanowski
3  This file is part of the SANE package.
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of the
8  License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18  MA 02111-1307, USA.
19 
20  As a special exception, the authors of SANE give permission for
21  additional uses of the libraries contained in this release of SANE.
22 
23  The exception is that, if you link a SANE library with other files
24  to produce an executable, this does not by itself cause the
25  resulting executable to be covered by the GNU General Public
26  License. Your use of that executable is in no way restricted on
27  account of linking the SANE library code into it.
28 
29  This exception does not, however, invalidate any other reasons why
30  the executable file might be covered by the GNU General Public
31  License.
32 
33  If you submit changes to SANE to the maintainers to be included in
34  a subsequent release, you agree by submitting the changes that
35  those changes may be distributed with this exception intact.
36 
37  If you write modifications of your own for SANE, it is your choice
38  whether to permit this exception to apply to your modifications.
39  If you do not wish that, delete this exception notice. */
40 #ifndef sanei_ab306_h
41 #define sanei_ab306_h
42 
43 #include <sys/types.h>
44 
45 #include <sane/sane.h>
46 
47 SANE_Status sanei_ab306_open (const char *dev, int *fd);
48 void sanei_ab306_close (int fd);
49 void sanei_ab306_exit (void);
50 
51 SANE_Status sanei_ab306_get_io_privilege (int fd);
52 SANE_Status sanei_ab306_test_ready (int fd);
53 SANE_Status sanei_ab306_cmd (int fd, const void *src, size_t src_size,
54  void *dst, size_t *dst_size);
55 SANE_Status sanei_ab306_rdata (int fd, int planes,
56  SANE_Byte *buf, int lines, int bpl);
57 
58 #endif /* sanei_ab306_h */