From: Dennis Schafroth Date: Wed, 29 Dec 2010 22:36:51 +0000 (+0100) Subject: Add: client_get_maxrecs X-Git-Tag: v1.5.1~9 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=2552abf219e2fe52c4ab0f1b9f38707ef0a8e0c9;p=pazpar2-moved-to-github.git Add: client_get_maxrecs --- diff --git a/src/client.c b/src/client.c index fad815c..b2d16b1 100644 --- a/src/client.c +++ b/src/client.c @@ -1064,6 +1064,11 @@ void client_set_maxrecs(struct client *cl, int v) cl->maxrecs = v; } +int client_get_maxrecs(struct client *cl) +{ + return cl->maxrecs; +} + void client_set_startrecs(struct client *cl, int v) { cl->startrecs = v; diff --git a/src/client.h b/src/client.h index 88d46c1..c0b1442 100644 --- a/src/client.h +++ b/src/client.h @@ -89,6 +89,7 @@ void client_set_database(struct client *cl, struct session_database *db); struct host *client_get_host(struct client *cl); const char *client_get_url(struct client *cl); void client_set_maxrecs(struct client *cl, int v); +int client_get_maxrecs(struct client *cl); void client_set_startrecs(struct client *cl, int v); void client_remove_from_session(struct client *c); void client_incref(struct client *c);