b53889d75139b2dbd3ad48a62b665cbb20421236
[yaz-moved-to-github.git] / include / yaz / logrpn.h
1 /*
2  * Copyright (C) 1995-2005, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: logrpn.h,v 1.10 2006-01-20 11:01:46 adam Exp $
6  */
7
8 /**
9  * \file logrpn.h
10  * \brief Header for Z39.50 Query Printing
11  */
12
13 #ifndef YAZ_LOGRPN_H
14 #define YAZ_LOGRPN_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_diags(WRBUF b, int num_diagnostics,Z_DiagRec **diags);
33 YAZ_EXPORT void wrbuf_put_zquery(WRBUF b, const Z_Query *q);
34
35 YAZ_END_CDECL
36
37 #endif
38 /*
39  * Local variables:
40  * c-basic-offset: 4
41  * indent-tabs-mode: nil
42  * End:
43  * vim: shiftwidth=4 tabstop=8 expandtab
44  */
45