aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/data.h b/src/data.h
index 902d257..1666427 100644
--- a/src/data.h
+++ b/src/data.h
@@ -3,22 +3,33 @@
#include <gtk/gtk.h>
+typedef struct _volume Volume;
+
+struct _volume
+{
+ int number;
+ int read;
+};
+
typedef struct _manga Manga;
struct _manga
{
- int id;
- int current_qty;
- int total_qty;
- char *name;
+ int id;
+ int current_qty;
+ int total_qty;
+ char *name;
+ int vol_count;
+ Volume *volumes;
};
GList *data_get_manga(void);
Manga *data_get_manga_by_id(gint manga_id);
-void data_get_volumes_by_manga_id(gint manga_id, gint *size, gint **vols);
+void data_get_volumes_for_manga(Manga *manga);
gboolean data_add_manga(gchar *name, gint total_qty);
gboolean data_add_to_manga(gint id, gint count);
gboolean data_add_volume_to_manga(gint manga_id, gint volume);
+gboolean data_mark_volume_read(gint read, gint manga_id, gint volume);
gboolean data_remove_volume_from_manga(gint manga_id, gint volume);
#endif /* __DATA_H__ */