Implemented the 'equivalent' directive for .chr-files.
+Added zebra_get_bfs to get BFile handle for session.
+
Added 'melm' directive to absyn format to simplify config files
for MARC-style databases. See tab/marc21.abs for an example.
-/* $Id: api.h,v 1.14 2005-03-08 14:02:08 adam Exp $
+/* $Id: api.h,v 1.15 2005-03-17 07:54:23 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
YAZ_EXPORT
int zebra_select_databases(ZebraHandle zh, int num_bases,
- const char **basenames);
+ const char **basenames);
YAZ_EXPORT
int zebra_select_database(ZebraHandle zh, const char *basename);
YAZ_EXPORT
void zebra_meta_records_destroy(ZebraHandle zh, ZebraMetaRecord *records,
int num);
+
+YAZ_EXPORT
+struct BFile_struct *zebra_get_bfs(ZebraHandle zh);
YAZ_END_CDECL
#endif
-/* $Id: zebraapi.c,v 1.154 2005-03-09 12:14:42 adam Exp $
+/* $Id: zebraapi.c,v 1.155 2005-03-17 07:54:23 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
return sort_status;
}
+struct BFile_struct *zebra_get_bfs(ZebraHandle zh)
+{
+ if (zh && zh->reg)
+ return zh->reg->bfs;
+ return 0;
+}