1 /* This file is part of Pazpar2.
2 Copyright (C) 2006-2009 Index Data
4 Pazpar2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #define MARCHASH_MASK 127
27 struct marcfield *table[MARCHASH_MASK + 1];
35 struct marcsubfield *subfields;
36 struct marcfield *next;
43 struct marcsubfield *next;
46 struct marchash *marchash_create (NMEM nmem);
47 int marchash_ingest_marcxml (struct marchash *marchash, xmlNodePtr rec_node);
48 struct marcfield *marchash_add_field (struct marchash *marchash, char *key, char *value);
49 struct marcsubfield *marchash_add_subfield (struct marchash *marchash, struct marcfield *field, char key, char *value);
50 struct marcfield *marchash_get_field (struct marchash *marchash, char *key, struct marcfield *last);
51 struct marcsubfield *marchash_get_subfield (char key, struct marcfield *field, struct marcsubfield *last);
56 * c-file-style: "Stroustrup"
57 * indent-tabs-mode: nil
59 * vim: shiftwidth=4 tabstop=8 expandtab