| 1 | /* |
| 2 | Copyright (C) 2000 Marco Ziech |
| 3 | Copyright (C) 2000 Ross Combs ([email protected]) |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU 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, MA 02111-1307 USA |
| 18 | */ |
| 19 | #ifndef JUST_NEED_TYPES |
| 20 | #ifndef INCLUDED_FILEIO_PROTOS |
| 21 | #define INCLUDED_FILEIO_PROTOS |
| 22 | |
| 23 | #include <cstdint> |
| 24 | #include <cstdio> |
| 25 | |
| 26 | namespace pvpgn |
| 27 | { |
| 28 | |
| 29 | namespace bni |
| 30 | { |
| 31 | |
| 32 | extern void file_rpush(std::FILE *f); |
| 33 | extern void file_rpop(void); |
| 34 | extern void file_wpush(std::FILE *f); |
| 35 | extern void file_wpop(void); |
| 36 | |
| 37 | extern std::uint8_t file_readb(void); |
| 38 | extern std::uint16_t file_readw_le(void); |
| 39 | extern std::uint16_t file_readw_be(void); |
| 40 | extern std::uint32_t file_readd_le(void); |
| 41 | extern std::uint32_t file_readd_be(void); |
| 42 | extern int file_writeb(std::uint8_t u); |
| 43 | extern int file_writew_le(std::uint16_t u); |
| 44 | extern int file_writew_be(std::uint16_t u); |
| 45 | extern int file_writed_le(std::uint32_t u); |
| 46 | extern int file_writed_be(std::uint32_t u); |
| 47 | |
| 48 | } |
| 49 | |
| 50 | } |
| 51 | #endif |
| 52 | #endif |