draft of bookmarks implementation

'/bookmark add' and '/bookmark remove' ain't finished
This commit is contained in:
Dmitry Podgorny
2013-07-14 23:58:02 +03:00
parent 6e23584575
commit b9d29e9aa5
5 changed files with 292 additions and 34 deletions

View File

@@ -2,6 +2,21 @@
#ifndef BOOKMARK_H
#define BOOKMARK_H
#include <glib.h>
struct bookmark_t {
char *jid;
char *nick;
gboolean autojoin;
};
typedef struct bookmark_t Bookmark;
void bookmark_request(void);
void bookmark_add(const char *jid, const char *nick, gboolean autojoin);
void bookmark_remove(const char *jid, gboolean autojoin);
const GList *bookmark_get_list(void);
char *bookmark_find(char *search_str);
void bookmark_autocomplete_reset(void);
#endif