summaryrefslogtreecommitdiff
path: root/src/win95/txioctrl.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-01 00:55:22 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:09:04 +0200
commit2186d5f3f95cd74a070a490d899291648d58667a (patch)
tree55241a1afa3e1a22e0b6593a8dead0b703800f44 /src/win95/txioctrl.h
parent218ca90543758a20ac326e444ca0643174ca7384 (diff)
Initial revision
Diffstat (limited to 'src/win95/txioctrl.h')
-rw-r--r--src/win95/txioctrl.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/win95/txioctrl.h b/src/win95/txioctrl.h
new file mode 100644
index 0000000..556d986
--- /dev/null
+++ b/src/win95/txioctrl.h
@@ -0,0 +1,48 @@
+#ifndef _included_txioctrl_h_
+#define _included_txioctrl_h_
+
+#include "system.h"
+
+#ifdef MaxImageGroups
+#if MaxImageGroups < 2 /* optimize if this multiple groups are not required */
+#undef MaxImageGroups
+#endif /* MaxImageGroups < 2 */
+#endif /* MaxImageGroups */
+
+#ifdef MaxImageGroups
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void ImageGroupFreed(int img_group);
+
+void MarkImageInUseByGroup(int img_group, int img_num_offset, int group_using);
+
+int IsImageInUse(int img_group, int img_num_offset);
+
+int CanDeleteImage(int img_group, int img_num_offset);
+
+void NowDeleteImage(int img_group, int img_num_offset);
+
+#if debug
+
+void ImageGroupsDebugPrint(void);
+
+void ImageGroupsDebugPrintInit(void);
+
+#endif /* debug */
+
+typedef void (*ImageNumberCallbackFunction) (int imgnum, void * user);
+
+void EnumSharedImages(int group_num, int numimages, ImageNumberCallbackFunction callback_fn, void * user);
+
+void EnumLeftoverImages(int group_num, int numimages, ImageNumberCallbackFunction callback_fn, void * user);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MaxImageGroups */
+
+#endif /* ! _included_txioctrl_h_ */