aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index 06db25f..02d85c1 100644
--- a/dat.h
+++ b/dat.h
@@ -16,6 +16,7 @@ typedef struct Series Series;
typedef struct Season Season;
typedef struct Episode Episode;
typedef struct Resource Resource;
+typedef struct Index Index;
struct Movie {
char *release; /* release date */
@@ -89,12 +90,24 @@ enum {
Runknown
};
struct Resource {
+ char *title;
int type;
+ void *media;
+ /* this union will disappear soon */
union {
Movie movie;
Multipart multi;
Series serie;
};
+ Resource *next;
+};
+
+enum {
+ INDEXSIZE = 67,
+};
+struct Index {
+ pthread_rwlock_t lock;
+ Resource *rtab[INDEXSIZE];
};
typedef struct Req Req;