Separate the logging utilities for queries in two . The multi-line
[yaz-moved-to-github.git] / include / yaz / logrpn.h
index e5e7552..6af089f 100644 (file)
@@ -1,32 +1,44 @@
 /*
- * Copyright (c) 1997-2000, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
- *
- * $Log: logrpn.h,v $
- * Revision 1.2  2000-02-28 11:20:06  adam
- * Using autoconf. New definitions: YAZ_BEGIN_CDECL/YAZ_END_CDECL.
- *
- * Revision 1.1  1999/11/30 13:47:11  adam
- * Improved installation. Moved header files to include/yaz.
- *
- * Revision 1.1  1998/11/16 16:02:32  adam
- * Added loggin utilies, log_rpn_query and log_scan_term. These used
- * to be part of Zebra.
  *
+ * $Id: logrpn.h,v 1.9 2006-01-20 10:34:51 adam Exp $
  */
 
-#ifndef LOG_RPN_H
-#define LOG_RPN_H
+/**
+ * \file logrpn.h
+ * \brief Header for Z39.50 Query Printing
+ */
+
+#ifndef YAZ_LOGRPN_H
+#define YAZ_LOGRPN_H
 
 #include <yaz/yconfig.h>
 #include <yaz/proto.h>
+#include <yaz/wrbuf.h>
 
 YAZ_BEGIN_CDECL
 
-YAZ_EXPORT void log_rpn_query (Z_RPNQuery *rpn);
-YAZ_EXPORT void log_scan_term (Z_AttributesPlusTerm *zapt, oid_value ast);
+YAZ_EXPORT void log_rpn_query(Z_RPNQuery *rpn);
+YAZ_EXPORT void log_rpn_query_level(int loglevel, Z_RPNQuery *rpn);
+
+YAZ_EXPORT void log_scan_term(Z_AttributesPlusTerm *zapt, oid_value ast);
+YAZ_EXPORT void log_scan_term_level(int loglevel, 
+                                    Z_AttributesPlusTerm *zapt, oid_value ast);
+
+YAZ_EXPORT void yaz_log_zquery(Z_Query *q);
+YAZ_EXPORT void yaz_log_zquery_level(int loglevel, Z_Query *q);
+
+YAZ_EXPORT void wrbuf_diags(WRBUF b, int num_diagnostics,Z_DiagRec **diags);
 
 YAZ_END_CDECL
 
 #endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+