Added verify to http api

This commit is contained in:
James Booth
2015-06-14 01:39:21 +01:00
parent 2058d8e295
commit 3733390d0f
4 changed files with 41 additions and 25 deletions

View File

@@ -44,12 +44,12 @@ verify_set_timeout(int seconds)
}
int
verify_any(char *stanza_text)
verify_any(char *stanza_text, gboolean ign_timeout)
{
XMPPStanza *stanza = stanza_parse(stanza_text);
int result = 0;
if (timeoutsecs <= 0) {
if (timeoutsecs <= 0 || ign_timeout) {
result = stanzas_verify_any(stanza);
} else {
double elapsed = 0.0;