X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fisam.h;h=2051bf594e77ffbc26112130bf392db1eb413683;hb=b879b04a092d5b00cc866cf16f755e55053d2e89;hp=3b694bd32e7d9949aecac74cd581dd74c5a2346a;hpb=a5545de18b5d3762a1f29569a4b10ca5017506db;p=idzebra-moved-to-github.git diff --git a/include/isam.h b/include/isam.h index 3b694bd..2051bf5 100644 --- a/include/isam.h +++ b/include/isam.h @@ -4,7 +4,19 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: isam.h,v $ - * Revision 1.5 1994-09-27 20:03:36 quinn + * Revision 1.9 1994-09-28 16:58:26 quinn + * Small mod. + * + * Revision 1.8 1994/09/28 12:56:09 quinn + * Added access functions (ISPT) + * + * Revision 1.7 1994/09/28 11:56:13 quinn + * Removed const from input to is_merge + * + * Revision 1.6 1994/09/28 11:29:28 quinn + * Added cmp parameter. + * + * Revision 1.5 1994/09/27 20:03:36 quinn * Seems relatively bug-free. * * Revision 1.4 1994/09/26 17:05:54 quinn @@ -68,7 +80,7 @@ typedef struct isam_struct typedef struct ispt_struct { - struct is_mtable *tab; + struct is_mtable tab; struct ispt_struct *next; /* freelist */ } ispt_struct, *ISPT; @@ -85,7 +97,8 @@ typedef struct ispt_struct /* * Open isam file. */ -ISAM is_open(const char *name, int writeflag); +ISAM is_open(const char *name, int (*cmp)(const void *p1, const void *p2), + int writeflag); /* * Close isam file. @@ -110,6 +123,10 @@ int is_readkey(ISPT ip, void *buf); int is_writekey(ISPT ip, const void *buf); -ISAM_P is_merge(ISAM is, ISAM_P pos, int num, const char *data); +int is_numkeys(ISPT ip); + +void is_rewind(ISPT ip); + +ISAM_P is_merge(ISAM is, ISAM_P pos, int num, char *data); #endif