Bump version to 2.0.29
[yaz-moved-to-github.git] / src / logrpn.c
index b79b2e3..a396706 100644 (file)
@@ -1,9 +1,15 @@
 /*
- * Copyright (C) 1995-2003, Index Data
+ * Copyright (C) 1995-2004, Index Data
  * All rights reserved.
  *
- * $Id: logrpn.c,v 1.1 2003-10-27 12:21:30 adam Exp $
+ * $Id: logrpn.c,v 1.3 2004-10-15 00:19:00 adam Exp $
  */
+
+/**
+ * \file logrpn.c
+ * \brief Implements Z39.50 Query Printing
+ */
+
 #include <stdio.h>
 
 #include <yaz/log.h>
@@ -361,6 +367,13 @@ void yaz_log_zquery (Z_Query *q)
     case Z_Query_type_1: case Z_Query_type_101:
        log_rpn_query (q->u.type_1);
         break;
+    case Z_Query_type_2:
+       yaz_log(LOG_LOG, "CCL: %.*s", q->u.type_2->len, q->u.type_2->buf);
+       break;
+    case Z_Query_type_100:
+       yaz_log(LOG_LOG, "Z39.58: %.*s", q->u.type_100->len,
+               q->u.type_100->buf);
+       break;
     case Z_Query_type_104:
         if (q->u.type_104->which == Z_External_CQL)
             yaz_log (LOG_LOG, "CQL: %s", q->u.type_104->u.cql);