Added a utility res_clear which removes/clears all items in a
[idzebra-moved-to-github.git] / include / idzebra / res.h
index d355f37..8c68715 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: res.h,v 1.2 2004-09-28 13:31:20 adam Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
-   Index Data Aps
+/* $Id: res.h,v 1.6 2005-08-17 21:28:07 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -20,10 +20,10 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 02111-1307, USA.
 */
 
-#ifndef RES_H
-#define RES_H
+#ifndef IDZEBRA_RES_H
+#define IDZEBRA_RES_H
 
-#include <yaz/yaz-version.h>
+#include <idzebra/util.h>
 
 YAZ_BEGIN_CDECL
 
@@ -36,6 +36,9 @@ YAZ_EXPORT
 void res_close (Res r);
 
 YAZ_EXPORT
+void res_clear (Res r);
+
+YAZ_EXPORT
 const char *res_get (Res r, const char *name);
 
 YAZ_EXPORT
@@ -58,6 +61,9 @@ YAZ_EXPORT
 const char *res_get_prefix (Res r, const char *name, const char *prefix,
                            const char *def);
 
+YAZ_EXPORT
+ZEBRA_RES res_get_int(Res r, const char *name, int *val);
+
 YAZ_END_CDECL
 
 #endif