Added form tests

This commit is contained in:
James Booth
2014-09-14 22:31:27 +01:00
parent de0ce0b80d
commit b934ad54d5
6 changed files with 389 additions and 5 deletions

View File

@@ -62,10 +62,12 @@ autocomplete_new(void)
void
autocomplete_clear(Autocomplete ac)
{
g_slist_free_full(ac->items, free);
ac->items = NULL;
if (ac != NULL) {
g_slist_free_full(ac->items, free);
ac->items = NULL;
autocomplete_reset(ac);
autocomplete_reset(ac);
}
}
void
@@ -335,4 +337,4 @@ _search_from(Autocomplete ac, GSList *curr, gboolean quote)
}
return NULL;
}
}

View File

@@ -35,6 +35,8 @@
#ifndef FORM_H
#define FROM_H
#include "xmpp/xmpp.h"
DataForm* form_create(xmpp_stanza_t * const stanza);
xmpp_stanza_t* form_create_submission(DataForm *form);