File: vm.h

package info (click to toggle)
koala 0.3.2a-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,036 kB
  • ctags: 581
  • sloc: ansic: 29,450; makefile: 1,664; xml: 11
file content (43 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (3)
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
/* @(#) vm.h 1.3 @(#) */
/***************************************************************\
*	Copyright (c) 1999-2000 First Step Internet Services, Inc.
*		All Rights Reserved
*
*	Module: VMLib
\***************************************************************/

#ifndef _KOALAMUD_VM_H
#define _KOALAMUD_VM_H "@(#) nitehawk@winghove.1ststep.net|include/vm.h|20000313060459|06043 @(#)"

/* Exported VM types */
typedef struct TAG_VMCONFIG_T
{
	char *vmdbpath;		/* Base path of DB */
	char *vmdbrootname;	/* DB Root name */
	char *vmext;		/* DB file extention */
} vmconfig_t;

/* Exported globals */
extern vmconfig_t vmconfig;

/* VM Errors */
typedef enum
{
	VMSUCCESS = 0,
	VMEOFFSET = 99, /* Offset by 100 to differentiate from koala errors */
	VMEMEM,
	VMBADSTATE,
	VMELAST,
} vmerr_t;

/* Vm State change functions */
int vmstartup(void);  // Call first
int vmlinkup(void);
int vmshutdown(void);

/* Error printing functions */
/* Return a pointer to a string describing the given error */
char * vmstrerr(vmerr_t err);


#endif