File: gtmimagename.h

package info (click to toggle)
fis-gtm 6.2-000-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,784 kB
  • ctags: 42,554
  • sloc: ansic: 358,483; asm: 4,847; csh: 4,574; sh: 2,261; awk: 200; makefile: 86; sed: 13
file content (46 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download | duplicates (5)
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
/****************************************************************
 *								*
 *	Copyright 2001, 2014 Fidelity Information Services, Inc	*
 *								*
 *	This source code contains the intellectual property	*
 *	of its copyright holder(s), and is made available	*
 *	under a license.  If you do not know the terms of	*
 *	the license, please stop and do not read further.	*
 *								*
 ****************************************************************/

#ifndef GTMIMAGENAME_DEF
#define GTMIMAGENAME_DEF

typedef struct
{
	char	*imageName;
	int	imageNameLen;
} gtmImageName;

enum gtmImageTypes
{
#define IMAGE_TABLE_ENTRY(A,B)	A,
#include "gtmimagetable.h"
#undef IMAGE_TABLE_ENTRY
	n_image_types
};

#define GTMIMAGENAMETXT(x) gtmImageNames[x].imageNameLen, gtmImageNames[x].imageName

GBLREF	enum gtmImageTypes	image_type;	/* needed by IS_MUMPS_IMAGE and IS_GTM_IMAGE macros */
GBLREF	boolean_t		run_time;	/* needed by IS_MCODE_RUNNING macro */

#define IS_MCODE_RUNNING	(run_time)

#define IS_DSE_IMAGE			(DSE_IMAGE == image_type)
#define IS_GTCM_SERVER_IMAGE		(GTCM_SERVER_IMAGE == image_type)
#define IS_GTCM_GNP_SERVER_IMAGE	(GTCM_GNP_SERVER_IMAGE == image_type)
#define IS_GTMSECSHR_IMAGE		(GTMSECSHR_IMAGE == image_type)
#define IS_GTM_IMAGE			IS_MUMPS_IMAGE
#define IS_LKE_IMAGE			(LKE_IMAGE == image_type)
#define IS_MUMPS_IMAGE			(GTM_IMAGE == image_type)
#define IS_MUPIP_IMAGE			(MUPIP_IMAGE == image_type)
#define	IS_VALID_IMAGE			(INVALID_IMAGE != image_type)

#endif