Cleaned up the creation of rsets, added nmem
[idzebra-moved-to-github.git] / include / rsisamb.h
index 94c4c8a..a95a6ba 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rsisamb.h,v 1.3 2004-08-20 14:44:45 heikki Exp $
+/* $Id: rsisamb.h,v 1.4 2004-08-24 14:25:15 heikki Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -32,15 +32,12 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 extern "C" {
 #endif
 
-extern const struct rset_control *rset_kind_isamb;
+/* extern const struct rset_control *rset_kind_isamb; */
+
+RSET rsisamb_create( NMEM nmem, int key_size, 
+            int (*cmp)(const void *p1, const void *p2),
+            ISAMB is, ISAMB_P pos);
 
-typedef struct rset_isamb_parms
-{
-    int (*cmp)(const void *p1, const void *p2);
-    int key_size;
-    ISAMB is;
-    ISAMB_P pos;
-} rset_isamb_parms;
 
 #ifdef __cplusplus
 }