X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkey_block.h;fp=index%2Fkey_block.h;h=8ed9e424300fef2ca91388d053ba92a3cef9f5ad;hb=ca39c711e9398043092cceeb3b4a7d8a0db1c0d8;hp=0000000000000000000000000000000000000000;hpb=a1b0fc99b8a098eff3d56172af6dd249a28399b3;p=idzebra-moved-to-github.git diff --git a/index/key_block.h b/index/key_block.h new file mode 100644 index 0000000..8ed9e42 --- /dev/null +++ b/index/key_block.h @@ -0,0 +1,48 @@ +/* $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. + +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 +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +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 this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ + +#ifndef ZEBRA_KEY_BLOCK_H +#define ZEBRA_KEY_BLOCK_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); +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, + 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); + +YAZ_END_CDECL + +#endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +