5ad39332f0c82be30acf1c5091c7800a3462d015
[yaz-moved-to-github.git] / include / yaz / logrpn.h
1 /*
2  * Copyright (c) 1997-2004, Index Data.
3  * See the file LICENSE for details.
4  *
5  * $Id: logrpn.h,v 1.6 2004-11-16 17:08:11 heikki Exp $
6  */
7
8 /**
9  * \file logrpn.h
10  * \brief Header for Z39.50 Query Printing
11  */
12
13 #ifndef LOG_RPN_H
14 #define LOG_RPN_H
15
16 #include <yaz/yconfig.h>
17 #include <yaz/proto.h>
18 #include <yaz/wrbuf.h>
19
20 YAZ_BEGIN_CDECL
21
22 YAZ_EXPORT void log_rpn_query (Z_RPNQuery *rpn);
23 YAZ_EXPORT void log_rpn_query_level (int loglevel, Z_RPNQuery *rpn);
24
25 YAZ_EXPORT void log_scan_term (Z_AttributesPlusTerm *zapt, oid_value ast);
26 YAZ_EXPORT void log_scan_term_level (int loglevel, 
27         Z_AttributesPlusTerm *zapt, oid_value ast);
28
29 YAZ_EXPORT void yaz_log_zquery (Z_Query *q);
30 YAZ_EXPORT void yaz_log_zquery_level (int loglevel, Z_Query *q);
31
32 YAZ_EXPORT void wrbuf_put_zquery(WRBUF b, Z_Query *q);
33 YAZ_EXPORT void wrbuf_scan_term (WRBUF b,
34         Z_AttributesPlusTerm *zapt, oid_value ast);
35 YAZ_EXPORT void wrbuf_diags(WRBUF b, int num_diagnostics,Z_DiagRec **diags);
36
37 YAZ_END_CDECL
38
39 #endif