1 /* $Id: util.hpp,v 1.5 2006-01-16 15:51:56 adam Exp $
2 Copyright (c) 2005, Index Data.
10 #include <yaz/z-core.h>
13 #include <boost/utility.hpp>
17 bool pqf(ODR odr, Z_APDU *apdu, const std::string &q);
18 Z_ReferenceId **get_referenceId(Z_APDU *apdu);
19 Z_APDU *create_APDU(ODR odr, int type, Z_APDU *in_apdu);
20 bool set_databases_from_zurl(ODR odr, std::string zurl,
21 int *db_num, char ***db_strings);
24 class odr : public boost::noncopyable {
30 Z_APDU *create_close(Z_APDU *in_apdu,
31 int reason, const char *addinfo);
32 Z_APDU *create_initResponse(Z_APDU *in_apdu,
33 int error, const char *addinfo);
34 Z_APDU *create_searchResponse(Z_APDU *in_apdu,
35 int error, const char *addinfo);
36 Z_APDU *create_presentResponse(Z_APDU *in_apdu,
37 int error, const char *addinfo);
38 Z_APDU *create_scanResponse(Z_APDU *in_apdu,
39 int error, const char *addinfo);
40 Z_APDU *create_APDU(int type, Z_APDU *in_apdu);
50 * indent-tabs-mode: nil
51 * c-file-style: "stroustrup"
53 * vim: shiftwidth=4 tabstop=8 expandtab