mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 18:46:21 +00:00
@@ -240,6 +240,24 @@ bookmark_autocomplete_reset(void)
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
bookmark_exists(const char *const room)
|
||||
{
|
||||
GSList *bookmarks = autocomplete_create_list(bookmark_ac);
|
||||
GSList *curr = bookmarks;
|
||||
while (curr) {
|
||||
if (strcmp(curr->data, room) == 0) {
|
||||
g_slist_free_full(bookmarks, g_free);
|
||||
return TRUE;
|
||||
} else {
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
}
|
||||
g_slist_free_full(bookmarks, g_free);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static int
|
||||
_bookmark_result_id_handler(xmpp_stanza_t *const stanza, void *const userdata)
|
||||
{
|
||||
|
||||
@@ -184,6 +184,7 @@ gboolean bookmark_join(const char *jid);
|
||||
const GList* bookmark_get_list(void);
|
||||
char* bookmark_find(const char *const search_str);
|
||||
void bookmark_autocomplete_reset(void);
|
||||
gboolean bookmark_exists(const char *const room);
|
||||
|
||||
void roster_send_name_change(const char *const barejid, const char *const new_name, GSList *groups);
|
||||
void roster_send_add_to_group(const char *const group, PContact contact);
|
||||
|
||||
Reference in New Issue
Block a user