File: util.H

package info (click to toggle)
dxpc 3.8.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 756 kB
  • ctags: 778
  • sloc: cpp: 10,221; sh: 173; makefile: 86
file content (26 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef util_H
#define util_H

#include "dxpcconf.h"

extern unsigned int GetUINT(unsigned const char *, int bigEndian);
extern unsigned int GetULONG(unsigned const char *, int bigEndian);
extern void PutUINT(unsigned int, unsigned char *, int bigEndian);
extern void PutULONG(unsigned int, unsigned char *, int bigEndian);
extern unsigned int RoundUp4(unsigned int);

extern void PrintVersionInfo();

extern void DumpMessage(const unsigned char *data, unsigned int length);

extern const char *GetArg(int &argi, int argc, const char ** argv);

extern int WriteAll(int fd, const unsigned char *data, unsigned int length);

extern OSTREAM *logofs;

// globals in main.C
extern int compressImages;
extern int wantBackingStore;

#endif /* util_H */