-# $Id: Makefile.am,v 1.10 2007-04-20 10:06:52 adam Exp $
+# $Id: Makefile.am,v 1.11 2007-04-20 13:03:22 marc Exp $
bin_PROGRAMS = pazpar2
check_PROGRAMS = test_config test_relevance test_sel_thread
libpazpar2_a_SOURCES = config.c config.h eventl.c eventl.h \
http.c http_command.c http_command.h http.h \
- logic.c pazpar2.h reclists.c reclists.h \
+ logic.c pazpar2.h \
+ record.h reclists.c reclists.h \
relevance.c relevance.h termlists.c termlists.h \
util.c util.h zeerex.c zeerex.h database.c database.h \
settings.h settings.c sel_thread.c sel_thread.h
-/* $Id: pazpar2.h,v 1.28 2007-04-20 04:32:33 quinn Exp $
+/* $Id: pazpar2.h,v 1.29 2007-04-20 13:03:22 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
#ifndef PAZPAR2_H
#define PAZPAR2_H
-struct record;
#include <netdb.h>
#include "eventl.h"
#include "config.h"
+struct record;
struct client;
-union data_types {
- char *text;
- struct {
- int min;
- int max;
- } number;
-};
-
-struct record_metadata {
- union data_types data;
- struct record_metadata *next; // next item of this name
-};
-
-struct record {
- struct client *client;
- struct record_metadata **metadata; // Array mirrors list of metadata fields in config
- union data_types **sortkeys; // Array mirrors list of sortkey fields in config
- struct record *next; // Next in cluster of merged records
-};
-
-struct record_cluster
-{
- struct record_metadata **metadata; // Array mirrors list of metadata fields in config
- union data_types **sortkeys;
- char *merge_key;
- int relevance;
- int *term_frequency_vec;
- int recid; // Set-specific ID for this record
- struct record *records;
-};
-
struct connection;
// Represents a host (irrespective of databases)
extern struct parameters global_parameters;
void pazpar2_add_channel(IOCHAN c);
void pazpar2_event_loop(void);
+
+
+
#endif
/*
-/* $Id: reclists.h,v 1.7 2007-04-17 07:52:03 marc Exp $
+/* $Id: reclists.h,v 1.8 2007-04-20 13:03:22 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
#define RECLISTS_H
#include "config.h"
+#include "record.h"
struct reclist
{
--- /dev/null
+/* $Id: record.h,v 1.1 2007-04-20 13:03:22 marc Exp $
+ Copyright (c) 2006-2007, Index Data.
+
+This file is part of Pazpar2.
+
+Pazpar2 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.
+
+Pazpar2 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 Pazpar2; see the file LICENSE. If not, write to the
+Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+ */
+
+#ifndef RECORD_H
+#define RECORD_H
+
+
+struct record;
+struct client;
+
+
+union data_types {
+ char *text;
+ struct {
+ int min;
+ int max;
+ } number;
+};
+
+struct record_metadata {
+ union data_types data;
+ struct record_metadata *next; // next item of this name
+};
+
+struct record {
+ struct client *client;
+ struct record_metadata **metadata; // Array mirrors list of metadata fields in config
+ union data_types **sortkeys; // Array mirrors list of sortkey fields in config
+ struct record *next; // Next in cluster of merged records
+};
+
+struct record_cluster
+{
+ struct record_metadata **metadata; // Array mirrors list of metadata fields in config
+ union data_types **sortkeys;
+ char *merge_key;
+ int relevance;
+ int *term_frequency_vec;
+ int recid; // Set-specific ID for this record
+ struct record *records;
+};
+
+
+#endif // RECORD_H
+
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */