1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
10 #include "liblj/livejournal.h"
13 typedef struct _DraftStore DraftStore
;
15 typedef void (*DraftStoreHeaderFunc
)(DraftStore
*, LJEntry
*, gpointer
);
17 DraftStore
* draft_store_new(JamAccount
*acc
);
18 void draft_store_free(DraftStore
*ds
);
20 gboolean
draft_store_each_header(DraftStore
*ds
,
22 DraftStoreHeaderFunc func
,
25 LJEntry
* draft_store_get_entry (DraftStore
*ds
, int itemid
, GError
**err
);
26 gboolean
draft_store_put_entry (DraftStore
*ds
, LJEntry
*entry
, GError
**err
);
27 gboolean
draft_store_remove_entry(DraftStore
*ds
, int itemid
, GError
**err
);
28 int draft_store_find_itemid (DraftStore
*ds
);
29 gboolean
draft_store_flush (DraftStore
*ds
, GError
**err
);
32 LJEntry
* draft_store_ui_select (DraftStore
*ds
, GtkWindow
*parent
);
35 #endif /* DRAFTSTORE_H */