1 /* This file is part of Pazpar2.
2 Copyright (C) 2006-2009 Index Data
4 Pazpar2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
40 int client_show_raw_begin(struct client *cl, int position,
41 const char *syntax, const char *esn,
43 void (*error_handler)(void *data, const char *addinfo),
44 void (*record_handler)(void *data, const char *buf,
49 int client_show_raw_immediate(struct client *cl, int position,
50 const char *syntax, const char *esn,
52 void (*error_handler)(void *data, const char *addinfo),
53 void (*record_handler)(void *data, const char *buf,
57 void client_show_raw_remove(struct client *cl, void *rr);
59 const char *client_get_state_str(struct client *cl);
60 enum client_state client_get_state(struct client *cl);
61 void client_set_state(struct client *cl, enum client_state st);
62 void client_fatal(struct client *cl);
63 struct connection *client_get_connection(struct client *cl);
64 struct session_database *client_get_database(struct client *cl);
65 void client_set_database(struct client *cl, struct session_database *db);
66 struct session *client_get_session(struct client *cl);
67 const char *client_get_pquery(struct client *cl);
69 void client_init_response(struct client *cl, Z_APDU *a);
70 void client_search_response(struct client *cl);
71 void client_record_response(struct client *cl);
72 void client_close_response(struct client *cl, Z_APDU *a);
74 int client_is_our_response(struct client *cl);
76 void client_continue(struct client *cl);
78 struct client *client_create(void);
79 void client_destroy(struct client *c);
81 void client_set_connection(struct client *cl, struct connection *con);
82 void client_disconnect(struct client *cl);
83 int client_prep_connection(struct client *cl);
84 void client_start_search(struct client *cl);
85 void client_set_session(struct client *cl, struct session *se);
86 int client_is_active(struct client *cl);
87 struct client *client_next_in_session(struct client *cl);
89 int client_parse_query(struct client *cl, const char *query);
90 int client_get_hits(struct client *cl);
91 int client_get_num_records(struct client *cl);
92 int client_get_diagnostic(struct client *cl);
93 void client_set_database(struct client *cl, struct session_database *db);
94 struct host *client_get_host(struct client *cl);
95 const char *client_get_url(struct client *cl);
102 * c-file-style: "Stroustrup"
103 * indent-tabs-mode: nil
105 * vim: shiftwidth=4 tabstop=8 expandtab