X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fkey_block.h;h=165fecff4d6fe685d4dd72eb31c09cd15a954b44;hp=8ed9e424300fef2ca91388d053ba92a3cef9f5ad;hb=250de4ed23a44f5eb3552db317eef0d0fbe3265c;hpb=ca39c711e9398043092cceeb3b4a7d8a0db1c0d8 diff --git a/index/key_block.h b/index/key_block.h index 8ed9e42..165fecf 100644 --- a/index/key_block.h +++ b/index/key_block.h @@ -1,8 +1,5 @@ -/* $Id: key_block.h,v 1.1 2006-11-21 14:32:38 adam Exp $ - Copyright (C) 1995-2006 - 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 @@ -23,14 +20,17 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifndef ZEBRA_KEY_BLOCK_H #define ZEBRA_KEY_BLOCK_H +#include "it_key.h" + YAZ_BEGIN_CDECL typedef struct zebra_key_block *zebra_key_block_t; -zebra_key_block_t key_block_create(int mem, const char *key_tmp_dir); +zebra_key_block_t key_block_create(int mem, const char *key_tmp_dir, + int use_threads); void key_block_destroy(zebra_key_block_t *pp); void key_block_flush(zebra_key_block_t p, int is_final); -void key_block_write(zebra_key_block_t p, SYSNO sysno, struct it_key *key_in, +void key_block_write(zebra_key_block_t p, zint sysno, struct it_key *key_in, int cmd, const char *str_buf, size_t str_len, zint staticrank, int static_rank_enable); int key_block_get_no_files(zebra_key_block_t p); @@ -41,6 +41,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