1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 #ifndef __LOGJAM_DRAFTSTORE_H__
5 #define __LOGJAM_DRAFTSTORE_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
);
29 extern LJEntry
*draft_store_ui_select (DraftStore
*ds
, GtkWindow
*parent
);
33 #endif /* DRAFTSTORE_H */