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_bin.h 42 * Binary codec for network transmissions 43 * 44 * Transtale data to a byte stream while taking byte order problems into 45 * account. This codec is currently used for saned and the network backend. 46 * 47 * @sa sanei_codec_ascii.h sanei_net.h sanei_wire.h 48 */ 49 50 #ifndef sanei_codec_bin_h 51 #define sanei_codec_bin_h 52 53 /** Initialize the binary codec 54 * 55 * Set the i/o functions of the Wire to those of the binary codec. 56 * 57 * @param w Wire 58 */ 59 extern void sanei_codec_bin_init (Wire *w); 60 61 #endif /* sanei_codec_bin_h */ 62