diff options
author | rodri <rgl@antares-labs.eu> | 2021-01-16 08:38:00 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-01-16 08:38:00 +0000 |
commit | 199753fada745e558e130a131b478ad9a9ffd0d9 (patch) | |
tree | a54c96821eba45dda1e03cb29024a87f907d6cdf /dat.h | |
parent | 2ba0c4f7520d37840308ccbda4841a99700fe11a (diff) | |
download | filmoteca-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.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; |