Use hash table for bookmarks

This commit is contained in:
James Booth
2016-08-21 15:25:49 +01:00
parent a52230978f
commit 0886062806
10 changed files with 168 additions and 232 deletions

View File

@@ -126,8 +126,6 @@ void cmd_bookmark_list_shows_bookmarks(void **state)
gboolean result = cmd_bookmark(&window, CMD_BOOKMARK, args);
assert_true(result);
g_list_free_full(bookmarks, (GDestroyNotify)_free_bookmark);
}
void cmd_bookmark_add_shows_message_when_invalid_jid(void **state)

View File

@@ -244,7 +244,7 @@ gboolean bookmark_join(const char *jid)
return FALSE;
}
const GList * bookmark_get_list(void)
GList * bookmark_get_list(void)
{
return (GList *)mock();
}