summaryrefslogtreecommitdiffstats
path: root/src/cache.h
blob: 0607112feefa74b3802aa0294388dcbc383826d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: LGPL-2.1-only */

/* Copyright (C) 2020 Gediminas Jakutis */

#ifndef ALGOS_CACHE_H_INCLUDED
#define ALGOS_CACHE_H_INCLUDED

#include <stddef.h>
#include "defs.h"

int cache_create(struct stream * const restrict in, const struct settings * const restrict s);
int cache_populate(struct stream * const restrict in);
int cache_flush(struct stream * const in);
int cache_destroy(struct stream * const in);

#endif /* ALGOS_CACHE_H_INCLUDED */