cache/cache.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 Aug 2008 00:29:39 +0300
changeset 43 e5b714190dee
parent 30 33e464fd6773
permissions -rw-r--r--
the request/reply code should be complete now, but still needs testing
#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 */