cache/cache.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 03:12:11 +0300
changeset 46 8a832c0e01ee
parent 30 33e464fd6773
permissions -rw-r--r--
bugfixed, enum->string mappings, test does requests
#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 */