diff src/xs_support.h @ 452:aec9f4beb401

New file reading functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 24 Jan 2007 21:57:04 +0000
parents 933b9ea5923e
children 00a32ab5887d
line wrap: on
line diff
--- a/src/xs_support.h	Wed Jan 17 23:38:03 2007 +0000
+++ b/src/xs_support.h	Wed Jan 24 21:57:04 2007 +0000
@@ -25,12 +25,20 @@
 #define ftello ftell
 #endif
 
-/*
- * Functions
+
+#define t_xs_file FILE
+
+
+/* Functions
  */
-guint16 xs_rd_be16(FILE *);
-guint32 xs_rd_be32(FILE *);
-size_t	xs_rd_str(FILE *, gchar *, size_t);
+t_xs_file *xs_fopen(gchar *, const gchar *);
+gint	xs_fclose(t_xs_file *);
+gint	xs_fgetc(t_xs_file *);
+guint16 xs_fread_be16(t_xs_file *);
+guint32 xs_fread_be32(t_xs_file *);
+size_t	xs_fread(void *, size_t, size_t, t_xs_file *);
+gint	xs_fgets(gchar *, gint, t_xs_file *);
+
 
 gchar	*xs_strncpy(gchar *, gchar *, size_t);
 gint	xs_pstrcpy(gchar **, const gchar *);