1 /* $Id: zebra_strmap.h,v 1.1 2007-12-02 11:30:28 adam Exp $
2 Copyright (C) 1995-2007
5 This file is part of the Zebra server.
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #ifndef ZEBRA_STRMAP_H
24 #define ZEBRA_STRMAP_H
26 #include <yaz/yconfig.h>
30 typedef struct zebra_strmap *zebra_strmap_t;
33 zebra_strmap_t zebra_strmap_create(void);
36 void zebra_strmap_destroy(zebra_strmap_t st);
39 void zebra_strmap_add(zebra_strmap_t st, const char *name,
40 void *data_buf, size_t data_len);
43 void *zebra_strmap_lookup(zebra_strmap_t st, const char *name, int no,
47 int zebra_strmap_remove(zebra_strmap_t st, const char *name);
55 * indent-tabs-mode: nil
57 * vim: shiftwidth=4 tabstop=8 expandtab