From 2552abf219e2fe52c4ab0f1b9f38707ef0a8e0c9 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 29 Dec 2010 23:36:51 +0100 Subject: [PATCH] Add: client_get_maxrecs --- src/client.c | 5 +++++ src/client.h | 1 + 2 files changed, 6 insertions(+) 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); -- 1.7.10.4