From: Adam Dickmeiss Date: Tue, 2 Jun 2015 13:41:16 +0000 (+0200) Subject: Prototype client_get_suggestions_xml in header X-Git-Tag: v1.10.0~7 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=132a4c69f5c50b8437acb8edf015c751169897be;p=pazpar2-moved-to-github.git Prototype client_get_suggestions_xml in header --- diff --git a/src/client.c b/src/client.c index e5d3e4c..63be8d4 100644 --- a/src/client.c +++ b/src/client.c @@ -1742,7 +1742,7 @@ int client_get_diagnostic(struct client *cl, const char **message, return cl->diagnostic; } -const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf) +const char *client_get_suggestions_xml(struct client *cl, WRBUF wrbuf) { /* int idx; */ struct suggestions *suggestions = cl->suggestions; @@ -1771,7 +1771,6 @@ const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf) return wrbuf_cstr(wrbuf); } - void client_set_database(struct client *cl, struct session_database *db) { cl->database = db; diff --git a/src/client.h b/src/client.h index e124ac4..8b427a7 100644 --- a/src/client.h +++ b/src/client.h @@ -110,6 +110,8 @@ const char *client_get_facet_limit_local(struct client *cl, int *l, NMEM nmem, int *num, char ***values); +const char *client_get_suggestions_xml(struct client *cl, WRBUF wrbuf); + void client_update_show_stat(struct client *cl, int cmd); void client_store_xdoc(struct client *cl, int record_no, xmlDoc *xdoc); diff --git a/src/session.c b/src/session.c index 3dcf40f..a94dc9f 100644 --- a/src/session.c +++ b/src/session.c @@ -1049,8 +1049,6 @@ struct session *new_session(NMEM nmem, struct conf_service *service, return session; } -const char * client_get_suggestions_xml(struct client *cl, WRBUF wrbuf); - static struct hitsbytarget *hitsbytarget_nb(struct session *se, int *count, NMEM nmem) {