summaryrefslogtreecommitdiffstats
path: root/innbbsd/his.h
blob: 5fcca9e2422a7d0e67accd2450cd580bff60a599 (plain) (blame)
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
#ifndef HIS_H
#define HIS_H

#include <time.h>
#include <dbz.h>

#ifndef XINDEX_DBZINCORE
#define XINDEX_DBZINCORE 1
#endif

#define LEN 1024

#define HIS_FIELDSEP        '\t'

#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif

#ifndef BOOL
typedef unsigned char BOOL;
#endif

#ifndef ICD_SYNC_COUNT
#define ICD_SYNC_COUNT 1
#endif

/* his.c */
void HISclose(void);
void HISmaint(void);
void mkhistory(char *);
int myHISsetup(char *);
char *HISfilesfor(datum *, datum *);
int myHISwrite(datum *, char *);
void hisincore(int);
void HISsetup(void);
BOOL HISwrite(datum *, long, char *);
void mkhistory(char *);
time_t gethisinfo(void);

/* dbztool.c */
char *DBfetch(char *);
int storeDB(char *, char *);

#endif