X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frank.h;h=ad26575d6b9a66837d8deef6f9edff31c56a0ae1;hp=4ef5aa1924626cc988580c0502da8095685e52ab;hb=27bdd6aa26843aeac89f635ed495996088d8e8aa;hpb=746f36f2b12f2a342dc0213cb03458359a493c8f diff --git a/index/rank.h b/index/rank.h index 4ef5aa1..ad26575 100644 --- a/index/rank.h +++ b/index/rank.h @@ -1,8 +1,5 @@ -/* $Id: rank.h,v 1.1 2006-05-03 09:31:26 marc Exp $ - Copyright (C) 1995-2005 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 2004-2013 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 @@ -15,9 +12,9 @@ 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 RANK_H @@ -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; @@ -61,3 +59,12 @@ extern struct rank_control *rank_similarity_class; YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +