29 |
#define NEXTKEY " __.NEXTKEY" |
#define NEXTKEY " __.NEXTKEY" |
30 |
#define VERSIONKEY " __.VERSION" |
#define VERSIONKEY " __.VERSION" |
31 |
|
|
32 |
|
/* |
33 |
|
* File type |
34 |
|
*/ |
35 |
|
#define GPATH_SOURCE 0 |
36 |
|
#define GPATH_OTHER 1 |
37 |
|
|
38 |
|
typedef struct { |
39 |
|
/* set by gfind_open() */ |
40 |
|
DBOP *dbop; |
41 |
|
const char *prefix; |
42 |
|
int other; |
43 |
|
int version; |
44 |
|
/* set by gfind_open() and gfind_read() */ |
45 |
|
int first; |
46 |
|
int eod; /* end of data */ |
47 |
|
/* set by gfind_read() */ |
48 |
|
int type; /* File type */ |
49 |
|
const char *path; /* return value of gfind_read() */ |
50 |
|
} GFIND; |
51 |
|
|
52 |
int gpath_open(const char *, int); |
int gpath_open(const char *, int); |
53 |
const char *gpath_path2fid(const char *, int *); |
const char *gpath_path2fid(const char *, int *); |
54 |
const char *gpath_fid2path(const char *, int *); |
const char *gpath_fid2path(const char *, int *); |
56 |
void gpath_delete(const char *); |
void gpath_delete(const char *); |
57 |
void gpath_close(void); |
void gpath_close(void); |
58 |
int gpath_nextkey(void); |
int gpath_nextkey(void); |
59 |
int gfind_open(const char *, const char *, int); |
GFIND *gfind_open(const char *, const char *, int); |
60 |
const char *gfind_read(void); |
const char *gfind_read(GFIND *); |
61 |
void gfind_close(void); |
void gfind_close(GFIND *); |
62 |
|
|
63 |
#endif /* ! _PATHOP_H_ */ |
#endif /* ! _PATHOP_H_ */ |