Refactor recindex out of Records struct
[idzebra-moved-to-github.git] / index / recindxp.h
index cf5a306..13452b4 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: recindxp.h,v 1.20 2006-09-15 10:45:13 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];