IDZEBRA 2.2.8
it_key.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18*/
19
20#ifndef ZEBRA_IT_KEY_H
21#define ZEBRA_IT_KEY_H
22
23#include <idzebra/util.h>
24
25YAZ_BEGIN_CDECL
26
27#define IT_MAX_WORD 512
28
29#define IT_KEY_LEVEL_MAX 5
34
35void *iscz1_start(void);
36void iscz1_reset(void *vp);
37void iscz1_stop(void *p);
38void iscz1_decode(void *vp, char **dst, const char **src);
39void iscz1_encode(void *vp, char **dst, const char **src);
40
41int key_compare(const void *p1, const void *p2);
42void key_init(struct it_key *k);
43zint key_get_seq(const void *p);
44zint key_get_segment(const void *p);
45int key_qsort_compare(const void *p1, const void *p2);
46char *key_print_it(const void *p, char *buf);
47void key_logdump(int mask, const void *p);
48void key_logdump_txt(int logmask, const void *p, const char *txt);
49
50int key_SU_decode(int *ch, const unsigned char *out);
51int key_SU_encode(int ch, char *out);
52
53YAZ_END_CDECL
54
55#endif
56/*
57 * Local variables:
58 * c-basic-offset: 4
59 * c-file-style: "Stroustrup"
60 * indent-tabs-mode: nil
61 * End:
62 * vim: shiftwidth=4 tabstop=8 expandtab
63 */
64
int key_SU_decode(int *ch, const unsigned char *out)
Definition su_codec.c:64
zint key_get_segment(const void *p)
Definition it_key.c:104
void * iscz1_start(void)
Definition it_key.c:130
void iscz1_decode(void *vp, char **dst, const char **src)
Definition it_key.c:238
void iscz1_encode(void *vp, char **dst, const char **src)
Definition it_key.c:190
int key_qsort_compare(const void *p1, const void *p2)
Definition it_key.c:111
int key_compare(const void *p1, const void *p2)
Definition it_key.c:74
void key_logdump(int mask, const void *p)
Definition it_key.c:63
char * key_print_it(const void *p, char *buf)
Definition it_key.c:68
#define IT_KEY_LEVEL_MAX
Definition it_key.h:29
void key_init(struct it_key *k)
Definition it_key.c:138
void key_logdump_txt(int logmask, const void *p, const char *txt)
Definition it_key.c:38
void iscz1_reset(void *vp)
Definition it_key.c:146
zint key_get_seq(const void *p)
Definition it_key.c:97
int key_SU_encode(int ch, char *out)
Definition su_codec.c:31
void iscz1_stop(void *p)
Definition it_key.c:155
int len
Definition it_key.h:31
zint mem[IT_KEY_LEVEL_MAX]
Definition it_key.h:32
long zint
Zebra integer.
Definition util.h:66