X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frank.h;h=5658af264f2d1834890e7a694883a0c1c5348222;hb=8c1d8b5e863e1375f9e25c4e11c8443f11c22496;hp=14193139c1d2b9a58e2909c2b7dd62416a5bdf29;hpb=97a7adeb9e5059463f039495cc01cfa448463a27;p=idzebra-moved-to-github.git diff --git a/index/rank.h b/index/rank.h index 1419313..5658af2 100644 --- a/index/rank.h +++ b/index/rank.h @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + 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 @@ -28,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: @@ -49,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; @@ -61,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