summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/gd-2.0.35/gd_io.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-20 07:58:16 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-03-20 07:58:16 +0000
commit10d837d22d7d99b26f44847f92501f6037da4ec2 (patch)
treecbef7ae7354e10886bec8a68e5637e7d754c33eb /Build/source/libs/gd/gd-2.0.35/gd_io.h
parent453e4a6601ed7f8a08029211434be8e58fc452a9 (diff)
new build system
git-svn-id: svn://tug.org/texlive/trunk@12450 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/gd/gd-2.0.35/gd_io.h')
-rw-r--r--Build/source/libs/gd/gd-2.0.35/gd_io.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/Build/source/libs/gd/gd-2.0.35/gd_io.h b/Build/source/libs/gd/gd-2.0.35/gd_io.h
new file mode 100644
index 00000000000..7f1c42141a2
--- /dev/null
+++ b/Build/source/libs/gd/gd-2.0.35/gd_io.h
@@ -0,0 +1,55 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef GD_IO_H
+#define GD_IO_H 1
+
+#include <stdio.h>
+
+#ifdef VMS
+#define Putchar gdPutchar
+#endif
+
+typedef struct gdIOCtx
+{
+ int (*getC) (struct gdIOCtx *);
+ int (*getBuf) (struct gdIOCtx *, void *, int);
+
+ void (*putC) (struct gdIOCtx *, int);
+ int (*putBuf) (struct gdIOCtx *, const void *, int);
+
+ /* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */
+ int (*seek) (struct gdIOCtx *, const int);
+
+ long (*tell) (struct gdIOCtx *);
+
+ void (*gd_free) (struct gdIOCtx *);
+
+}
+gdIOCtx;
+
+typedef struct gdIOCtx *gdIOCtxPtr;
+
+void Putword (int w, gdIOCtx * ctx);
+void Putchar (int c, gdIOCtx * ctx);
+
+ void gdPutC (const unsigned char c, gdIOCtx * ctx);
+ int gdPutBuf (const void *, int, gdIOCtx *);
+ void gdPutWord (int w, gdIOCtx * ctx);
+ void gdPutInt (int w, gdIOCtx * ctx);
+
+ int gdGetC (gdIOCtx * ctx);
+ int gdGetBuf (void *, int, gdIOCtx *);
+ int gdGetByte (int *result, gdIOCtx * ctx);
+ int gdGetWord (int *result, gdIOCtx * ctx);
+ int gdGetInt (int *result, gdIOCtx * ctx);
+
+ int gdSeek (gdIOCtx * ctx, const int offset);
+ long gdTell (gdIOCtx * ctx);
+
+#endif
+
+#ifdef __cplusplus
+}
+#endif