draftstore.*: cosmetix
[k8lowj.git] / src / draftstore.h
blob661f9b9a4d4e6a07b563a9959a36e1f0c84407cf
1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
3 */
4 #ifndef __LOGJAM_DRAFTSTORE_H__
5 #define __LOGJAM_DRAFTSTORE_H__
7 #include "account.h"
9 #include "liblj/livejournal.h"
12 typedef struct _DraftStore DraftStore;
14 typedef void (*DraftStoreHeaderFunc) (DraftStore *, LJEntry *, gpointer);
17 extern DraftStore *draft_store_new (JamAccount *acc);
18 extern void draft_store_free (DraftStore *ds);
20 extern gboolean draft_store_each_header (DraftStore *ds, LJEntry *entry, DraftStoreHeaderFunc func, gpointer data);
22 extern LJEntry *draft_store_get_entry (DraftStore *ds, int itemid, GError **err);
23 extern gboolean draft_store_put_entry (DraftStore *ds, LJEntry *entry, GError **err);
24 extern gboolean draft_store_remove_entry (DraftStore *ds, int itemid, GError **err);
25 extern int draft_store_find_itemid (DraftStore *ds);
26 extern gboolean draft_store_flush (DraftStore *ds, GError **err);
28 #ifdef HAVE_GTK
29 extern LJEntry *draft_store_ui_select (DraftStore *ds, GtkWindow *parent);
30 #endif
33 #endif /* DRAFTSTORE_H */