aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-01-16 08:38:00 +0000
committerrodri <rgl@antares-labs.eu>2021-01-16 08:38:00 +0000
commit199753fada745e558e130a131b478ad9a9ffd0d9 (patch)
treea54c96821eba45dda1e03cb29024a87f907d6cdf /dat.h
parent2ba0c4f7520d37840308ccbda4841a99700fe11a (diff)
downloadfilmoteca-199753fada745e558e130a131b478ad9a9ffd0d9.tar.gz
filmoteca-199753fada745e558e130a131b478ad9a9ffd0d9.tar.bz2
filmoteca-199753fada745e558e130a131b478ad9a9ffd0d9.zip
started work on the catalog (cache).
added assetsdir example. added readme file.
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;