aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.h
blob: b48b09f06b5435add16e34057263f1cf1226686a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __DATA_H__
#define __DATA_H__

#include <gtk/gtk.h>

typedef struct
{
    int number;
    int read;
} Volume;

typedef struct
{
    int id;
    int current_qty;
    int total_qty;
    char *name;
    int vol_count;
    Volume *volumes;
} Manga;

gboolean data_add_manga(const gchar*, gint);
gboolean data_add_to_manga(gint, gint);
gboolean data_add_volume_to_manga(gint, gint);
gboolean data_delete_manga(gint);
GList *data_get_incomplete_manga(void);
GList *data_get_manga(void);
Manga *data_get_manga_by_id(gint);
GList *data_get_unread_manga(void);
void data_get_volumes_for_manga(Manga*);
gboolean data_mark_volume_read(gint, gint, gint);
gboolean data_remove_volume_from_manga(gint, gint);
gboolean data_update_manga(gint, const gchar*, gint);

#endif /* __DATA_H__ */