#pragma once #include "../liana/server.h" #include "../portal/src/post.h" enum { CAMU_RESOURCE_FILE = 0, #ifdef NAUNET_HAS_CURL CAMU_RESOURCE_HTTP, #endif #ifdef CACHE_HAVE_CDIO CAMU_RESOURCE_CDIO, #endif #ifdef CAMU_HAVE_PORTAL CAMU_RESOURCE_PORTAL, CAMU_RESOURCE_SIMPLE_SEARCH #endif }; struct camu_resource { u8 type; u8 load; struct cch_entry *entry; struct lia_node *node; u64 duration; u32 ref; str uri; u32 index; struct camu_post *post; array(struct lia_list_entry *) pending; };