projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2128468
)
Lookup version and parse it on to perform_termlist
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 13:06:02 +0000
(15:06 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 12 Apr 2012 13:06:02 +0000
(15:06 +0200)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
0ab83ec
..
b75c9c9
100644
(file)
--- a/
src/http_command.c
+++ b/
src/http_command.c
@@
-513,8
+513,13
@@
static void cmd_settings(struct http_channel *c)
static void termlist_response(struct http_channel *c, struct http_session *s, const char *cmd_status)
{
struct http_request *rq = c->request;
static void termlist_response(struct http_channel *c, struct http_session *s, const char *cmd_status)
{
struct http_request *rq = c->request;
- const char *name = http_argbyname(rq, "name");
- const char *nums = http_argbyname(rq, "num");
+ const char *name = http_argbyname(rq, "name");
+ const char *nums = http_argbyname(rq, "num");
+ const char *version = http_argbyname(rq, "version");
+ int version_no = 0;
+ if (version && strcmp(version, "")) {
+ version_no = atoi(version);
+ }
int num = 15;
int status;
int num = 15;
int status;
@@
-530,7
+535,7
@@
static void termlist_response(struct http_channel *c, struct http_session *s, co
}
wrbuf_printf(c->wrbuf, "<activeclients>%d</activeclients>\n", status);
}
wrbuf_printf(c->wrbuf, "<activeclients>%d</activeclients>\n", status);
- perform_termlist(c, s->psession, name, num);
+ perform_termlist(c, s->psession, name, num, version_no);
response_close(c, "termlist");
}
response_close(c, "termlist");
}