~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to tools/create_teenagent/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2010-05-07 18:57:09 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100507185709-34v8yycywjrou5o3
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ScummVM - Graphic Adventure Engine
 
2
 *
 
3
 * ScummVM is the legal property of its developers, whose names
 
4
 * are too numerous to list here. Please refer to the COPYRIGHT
 
5
 * file distributed with this source distribution.
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU General Public License
 
9
 * as published by the Free Software Foundation; either version 2
 
10
 * of the License, or (at your option) any later version.
 
11
 
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20
 *
 
21
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-1-1/tools/create_teenagent/util.h $
 
22
 * $Id: util.h 47476 2010-01-23 15:00:11Z strangerke $
 
23
 *
 
24
 */
 
25
 
 
26
#ifndef UTIL_H
 
27
#define UTIL_H
 
28
 
 
29
#include "common/scummsys.h"
 
30
#include "common/endian.h"
 
31
#include "common/util.h"
 
32
 
 
33
#ifdef WIN32
 
34
#include <io.h>
 
35
#include <process.h>
 
36
#endif
 
37
 
 
38
 
 
39
/* File I/O */
 
40
uint8 readByte(FILE *fp);
 
41
uint16 readUint16BE(FILE *fp);
 
42
uint16 readUint16LE(FILE *fp);
 
43
uint32 readUint32BE(FILE *fp);
 
44
uint32 readUint32LE(FILE *fp);
 
45
void writeByte(FILE *fp, uint8 b);
 
46
void writeUint16BE(FILE *fp, uint16 value);
 
47
void writeUint16LE(FILE *fp, uint16 value);
 
48
void writeUint32BE(FILE *fp, uint32 value);
 
49
void writeUint32LE(FILE *fp, uint32 value);
 
50
uint32 fileSize(FILE *fp);
 
51
 
 
52
/* Misc stuff */
 
53
void NORETURN_PRE error(const char *s, ...) NORETURN_POST;
 
54
void warning(const char *s, ...);
 
55
void debug(int level, const char *s, ...);
 
56
 
 
57
using namespace Common;
 
58
 
 
59
#endif