music.c: cosmetix
[k8lowj.git] / src / liblj / syncitems.h
blobb9f9655bc47fd2d7adff54282eb101ab4cfb23b8
1 /* liblivejournal - a client library for LiveJournal.
2 * Copyright (C) 2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
5 */
7 #ifndef __LIVEJOURNAL_SYNCITEMS_H__
8 #define __LIVEJOURNAL_SYNCITEMS_H__
10 #include "liblj/verb.h"
11 #include <time.h>
13 typedef struct _LJSyncItems {
14 LJVerb verb;
16 GHashTable *items; /* itemid -> time */
18 /* note that count and total are just the values returned by syncitems,
19 * so count includes dups and total changes with each new batch. */
20 int count, total;
21 char *lastsync;
22 } LJSyncItems;
24 LJSyncItems* lj_syncitems_new(LJUser *user, const char *usejournal,
25 const char *lastsync, GHashTable *items);
26 void lj_syncitems_free(LJSyncItems *syncitems, gboolean free_items);
28 #endif /* __LIVEJOURNAL_SYNCITEMS_H__ */