Refactor recindex out of Records struct
[idzebra-moved-to-github.git] / index / recindxp.h
index 578577d..13452b4 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: recindxp.h,v 1.21 2007-01-15 20:08:25 adam Exp $
+/* $Id: recindxp.h,v 1.22 2007-11-23 13:11:08 adam Exp $
    Copyright (C) 1995-2007
    Index Data ApS
 
@@ -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];