mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-14 16:31:17 +00:00
26 lines
571 B
C
26 lines
571 B
C
#ifndef __quake_io_h
|
|
#define __quake_io_h
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "config.h"
|
|
#ifdef HAS_ZLIB
|
|
#include <zlib.h>
|
|
#endif
|
|
|
|
typedef struct {
|
|
FILE *file;
|
|
gzFile *gzfile;
|
|
} QFile;
|
|
|
|
QFile *Qopen(const char *path, const char *mode);
|
|
void Qclose(QFile *file);
|
|
int Qread(QFile *file, void *buf, int count);
|
|
int Qwrite(QFile *file, void *buf, int count);
|
|
int Qprintf(QFile *file, const char *fmt, ...);
|
|
char *Qgets(QFile *file, char *buf, int count);
|
|
int Qseek(QFile *file, long offset, int whence);
|
|
long Qtell(QFile *file);
|
|
int Qflush(QFile *file);
|
|
|
|
#endif /*__quake_io_h*/
|