X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frank.h;h=5658af264f2d1834890e7a694883a0c1c5348222;hp=62134dc545a2ee8f03aa0a280e7e24470d3b6603;hb=e9b6a86cc5ac30d6c6331c46ef3edaa08b99a2a7;hpb=5a8a42bede922e70156e7b289db071592c71529b diff --git a/index/rank.h b/index/rank.h index 62134dc..5658af2 100644 --- a/index/rank.h +++ b/index/rank.h @@ -1,8 +1,5 @@ -/* $Id: rank.h,v 1.4 2007-01-15 20:08:25 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -31,7 +28,7 @@ struct rank_control { char *name; void *(*create)(ZebraHandle zh); void (*destroy)(struct zebra_register *reg, void *class_handle); - void *(*begin)(struct zebra_register *reg, + void *(*begin)(struct zebra_register *reg, void *class_handle, RSET rset, NMEM nmem, TERMID *terms, int numterms); /* ### Could add parameters to begin: @@ -52,6 +49,7 @@ void zebraRankDestroy (struct zebra_register *reg); /* declaring externally defined rank class structures */ /* remember to install rank classes in zebraapi.c as well!! */ extern struct rank_control *rank_1_class; +extern struct rank_control *rank_2_class; extern struct rank_control *rank_zv_class; extern struct rank_control *rank_static_class; extern struct rank_control *rank_similarity_class; @@ -64,6 +62,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab