summaryrefslogtreecommitdiff
path: root/src/win95/txioctrl.h
blob: 556d9860bf951272d1594f34d8bae12562ba9601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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_ */