From 687c1d1454898339b5cf00654359a326089ffccd Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 27 Feb 2008 16:11:15 +0000 Subject: allow to modify the fh type more easily by adding more wrappers --- common.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index e114533..8f79471 100644 --- a/common.h +++ b/common.h @@ -21,14 +21,16 @@ extern void pciusb_initialize(struct pciusb_entry *e) NON_EXPORTED; #define MAX_DEVICES 100 #define BUF_SIZE 512 +typedef struct { + gzFile zlib_fh; +} fh; #define psizeof(a) (sizeof(a) / sizeof(*(a))) #define ifree(p) do { if (p) { free(p); p = NULL; } } while (0) -typedef gzFile fh; extern fh fh_open(const char *name) NON_EXPORTED; +extern char* fh_gets(char *line, int size, fh *f) NON_EXPORTED; +extern int fh_close(fh *f) NON_EXPORTED; #pragma GCC visibility pop -#define fh_gets(line, size, f) gzgets(f, line, size) -#define fh_close(f) gzclose(f); #endif -- cgit v1.2.1