this repo has no description
1/**
2 * This file is part of Darling.
3 *
4 * Copyright (C) 2020 Lubos Dolezel
5 *
6 * Darling is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Darling is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Darling. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef _CACHE_CACHE_H_
21#define _CACHE_CACHE_H_
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27void* cache_create(void);
28void* cache_destroy(void);
29void* cache_get(void);
30void* cache_get_and_retain(void);
31void* cache_get_cost_hint(void);
32void* cache_get_count_hint(void);
33void* cache_get_info(void);
34void* cache_get_info_for_key(void);
35void* cache_get_info_for_keys(void);
36void* cache_get_minimum_values_hint(void);
37void* cache_get_name(void);
38void* cache_hash_byte_string(void);
39void* cache_invoke(void);
40void* cache_key_hash_cb_cstring(void);
41void* cache_key_hash_cb_integer(void);
42void* cache_key_is_equal_cb_cstring(void);
43void* cache_key_is_equal_cb_integer(void);
44void* cache_print(void);
45void* cache_print_stats(void);
46void* cache_release_cb_free(void);
47void* cache_release_value(void);
48void* cache_remove(void);
49void* cache_remove_all(void);
50void* cache_remove_with_block(void);
51void* cache_set_and_retain(void);
52void* cache_set_cost_hint(void);
53void* cache_set_count_hint(void);
54void* cache_set_minimum_values_hint(void);
55void* cache_set_name(void);
56void* cache_simulate_memory_warning_event(void);
57void* cache_value_make_nonpurgeable_cb(void);
58void* cache_value_make_purgeable_cb(void);
59
60#ifdef __cplusplus
61};
62#endif
63
64#endif // _CACHE_CACHE_H_