X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fisamd.h;h=7c8e271c6d221705861d7cee74d4fd78d3d5c1c8;hb=662c511bba23720066c8b08e21844aac6d5a76ad;hp=f6994483f6f146ea9ac4f419b2d557d41fd5d0c7;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/include/isamd.h b/include/isamd.h index f699448..7c8e271 100644 --- a/include/isamd.h +++ b/include/isamd.h @@ -1,5 +1,5 @@ /* $Id$ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps This file is part of the Zebra server. @@ -15,12 +15,10 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. -*/ - +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ #ifndef ISAMD_H #define ISAMD_H @@ -42,6 +40,7 @@ typedef struct ISAMD_M_s { ISAMD_filecat filecat; int (*compare_item)(const void *a, const void *b); + void (*log_item)(int logmask, const void *p, const char *txt); #define ISAMD_DECODE 0 #define ISAMD_ENCODE 1 @@ -52,16 +51,16 @@ typedef struct ISAMD_M_s { int max_blocks_mem; int debug; -} *ISAMD_M; +} ISAMD_M; typedef struct ISAMD_I_s { /* encapsulation of input data */ int (*read_item)(void *clientData, char **dst, int *insertMode); void *clientData; } *ISAMD_I; -ISAMD_M isamd_getmethod (ISAMD_M me); +ISAMD_M *isamd_getmethod (ISAMD_M *me); -ISAMD isamd_open (BFiles bfs, const char *name, int writeflag, ISAMD_M method); +ISAMD isamd_open (BFiles bfs, const char *name, int writeflag, ISAMD_M *method); int isamd_close (ISAMD is); /*ISAMD_P isamd_append (ISAMD is, ISAMD_P pos, ISAMD_I data);*/ int isamd_append (ISAMD is, char *dictentry, int dictlen, ISAMD_I data);