1 /* $Id: client.h,v 1.1 2007-04-23 21:05:23 adam Exp $
2 Copyright (c) 2006-2007, Index Data.
4 This file is part of Pazpar2.
6 Pazpar2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Pazpar2; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46 const char *client_get_state_str(struct client *cl);
47 enum client_state client_get_state(struct client *cl);
48 void client_set_state(struct client *cl, enum client_state st);
49 void client_fatal(struct client *cl);
50 struct connection *client_get_connection(struct client *cl);
51 struct session_database *client_get_database(struct client *cl);
52 void client_set_database(struct client *cl, struct session_database *db);
53 struct session *client_get_session(struct client *cl);
54 const char *client_get_pquery(struct client *cl);
56 void client_set_requestid(struct client *cl, int id);
58 void client_init_response(struct client *cl, Z_APDU *a);
59 void client_search_response(struct client *cl, Z_APDU *a);
60 void client_present_response(struct client *cl, Z_APDU *a);
61 void client_close_response(struct client *cl, Z_APDU *a);
63 int client_is_our_response(struct client *cl);
65 void client_continue(struct client *cl);
67 struct client *client_create(void);
68 void client_destroy(struct client *c);
70 void client_set_connection(struct client *cl, struct connection *con);
71 void client_disconnect(struct client *cl);
72 int client_prep_connection(struct client *cl);
73 void client_set_session(struct client *cl, struct session *se);
74 int client_is_active(struct client *cl);
75 struct client *client_next_in_session(struct client *cl);
77 int client_parse_query(struct client *cl, const char *query);
78 int client_get_hits(struct client *cl);
79 int client_get_num_records(struct client *cl);
80 int client_get_diagnostic(struct client *cl);
81 void client_set_database(struct client *cl, struct session_database *db);
82 struct host *client_get_host(struct client *cl);
83 const char *client_get_url(struct client *cl);
90 * indent-tabs-mode: nil
92 * vim: shiftwidth=4 tabstop=8 expandtab