1/* sane - Scanner Access Now Easy.
2   Copyright (C) 1996 David Mosberger-Tang and Andreas Beck
3   This file is part of the SANE package.
4
5   SANE is free software; you can redistribute it and/or modify it under
6   the terms of the GNU General Public License as published by the Free
7   Software Foundation; either version 2 of the License, or (at your
8   option) any later version.
9
10   SANE is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13   for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with sane; see the file COPYING.
17   If not, see <https://www.gnu.org/licenses/>.
18
19   As a special exception, the authors of SANE give permission for
20   additional uses of the libraries contained in this release of SANE.
21
22   The exception is that, if you link a SANE library with other files
23   to produce an executable, this does not by itself cause the
24   resulting executable to be covered by the GNU General Public
25   License.  Your use of that executable is in no way restricted on
26   account of linking the SANE library code into it.
27
28   This exception does not, however, invalidate any other reasons why
29   the executable file might be covered by the GNU General Public
30   License.
31
32   If you submit changes to SANE to the maintainers to be included in
33   a subsequent release, you agree by submitting the changes that
34   those changes may be distributed with this exception intact.
35
36   If you write modifications of your own for SANE, it is your choice
37   whether to permit this exception to apply to your modifications.
38   If you do not wish that, delete this exception notice.
39*/
40
41/** @file sanei_codec_ascii.h
42 * ASCII codec for network and file transmissions
43 *
44 * Instead translating data to a byte stream this codec uses ASCII hex numbers.
45 * Therefore it can be used for streams that are not 8-bit clean or which can
46 * only use printable characters. It's currently used for saving/restoring
47 * data to/from disk.
48 *
49 * @sa sanei_codec_bin.h sanei_net.h sanei_wire.h
50 */
51#ifndef sanei_codec_ascii_h
52#define sanei_codec_ascii_h
53
54/** Initialize the ascii codec
55 *
56 * Set the i/o functions of the Wire to those of the ASCII codec.
57 *
58 * @param w Wire
59 */
60extern void sanei_codec_ascii_init (Wire *w);
61
62#endif /* sanei_codec_ascii_h */
63