Split of work into more files.
[idzebra-moved-to-github.git] / index / index.h
1 /*
2  * Copyright (C) 1995, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: index.h,v $
7  * Revision 1.3  1995-09-01 14:06:35  adam
8  * Split of work into more files.
9  *
10  * Revision 1.2  1995/09/01  10:30:24  adam
11  * More work on indexing. Not working yet.
12  *
13  * Revision 1.1  1995/08/31  14:50:24  adam
14  * New simple file index tool.
15  *
16  */
17
18 #include <util.h>
19 #include <dict.h>
20 #include <isam.h>
21
22 struct it_key {
23     int sysno;
24     int seqno;
25     int field;
26 };
27
28 struct dir_entry {
29     char *name;
30 };
31
32 struct dir_entry *dir_open (const char *rep);
33 void dir_sort (struct dir_entry *e);
34 void dir_free (struct dir_entry **e_p);
35 void repository (int cmd, const char *rep, const char *base_path);
36
37 void file_extract (int cmd, const char *fname, const char *kname);
38
39 void key_open (const char *fname);
40 void key_close (void);
41 void key_flush (void);
42 void key_write (int cmd, struct it_key *k, const char *str);