cache/cache.h
author Tero Marttila <terom@fixme.fi>
Sat, 09 Aug 2008 01:00:18 +0300
changeset 34 f3ab8656b6a0
parent 30 33e464fd6773
permissions -rw-r--r--
update cache.h to reflect changes, empty cache entries are illegal, and unknown-size is returned as 0
#ifndef CACHE_CACHE_H
#define CACHE_CACHE_H

#include <sys/queue.h>

#include "op.h"

struct cache {
    struct cache_engine *engine;
    
    /*
     * List of currently active operations
     */
    LIST_HEAD(cache_op_list_head, cache_op) op_list;
};

int cache_init (struct cache *cache, struct cache_engine *engine);

#endif /* CACHE_CACHE_H */