* Copyright (c) 1995-2002, Index Data.
* See the file LICENSE for details.
*
- * $Id: d1_handle.c,v 1.7 2002-04-04 20:49:46 adam Exp $
+ * $Id: d1_handle.c,v 1.9 2002-07-29 20:04:08 adam Exp $
*/
#include <stdio.h>
int map_len;
NMEM mem;
+ int flags;
};
data1_handle data1_create (void)
{
+ return data1_createx(0);
+}
+
+data1_handle data1_createx (int flags)
+{
data1_handle p = (data1_handle)xmalloc (sizeof(*p));
if (!p)
return NULL;
p->absyn_cache = NULL;
p->attset_cache = NULL;
p->mem = nmem_create ();
+ p->flags = flags;
return p;
}
{
const char *path = data1_get_tabpath(dh);
const char *root = data1_get_tabroot(dh);
- return yaz_path_fopen_base (path, file, "r", root);
+ return yaz_fopen (path, file, "r", root);
+}
+
+int data1_is_xmlmode(data1_handle dh)
+{
+ return dh->flags & DATA1_FLAG_XML;
}