Refactor recindex out of Records struct
[idzebra-moved-to-github.git] / index / recindxp.h
index 1ecb6b4..13452b4 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: recindxp.h,v 1.19 2006-08-14 10:40:15 adam Exp $
-   Copyright (C) 1995-2006
+/* $Id: recindxp.h,v 1.22 2007-11-23 13:11:08 adam Exp $
+   Copyright (C) 1995-2007
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -30,12 +30,18 @@ YAZ_BEGIN_CDECL
 #define REC_HEAD_MAGIC "recindex"
 #define REC_VERSION 5
 
+struct recindex {
+    char *index_fname;
+    BFile index_BFile;
+};
+
+typedef struct recindex *recindex_t;
+
 struct records_info {
     int rw;
     int compression_method;
 
-    char *index_fname;
-    BFile index_BFile;
+    recindex_t recindex;
 
     char *data_fname[REC_BLOCK_TYPES];
     BFile data_BFile[REC_BLOCK_TYPES];
@@ -80,6 +86,8 @@ struct record_index_entry {
     int size;          /* size of record or 0 if free entry */
 };
 
+Record rec_cp(Record rec);
+
 YAZ_END_CDECL
 /*
  * Local variables: