From 199753fada745e558e130a131b478ad9a9ffd0d9 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 16 Jan 2021 08:38:00 +0000 Subject: started work on the catalog (cache). added assetsdir example. added readme file. --- dat.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dat.h') 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; -- cgit v1.2.3