cache/cache.h
author Tero Marttila <terom@fixme.fi>
Wed, 27 Aug 2008 21:30:32 +0300
changeset 41 540737bf6bac
parent 30 33e464fd6773
permissions -rw-r--r--
sending requests, and partial support for receiving -- incomplete, not tested
#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 */