Debian Codegraph @

platforms/linux-fs/barectf-platform-linux-fs.h

raw
1 #ifndef _BARECTF_PLATFORM_LINUX_FS_H
2 #define _BARECTF_PLATFORM_LINUX_FS_H
3
4 /*
5 * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
6 * Copyright (c) 2015-2020 Philippe Proulx <[email protected]>
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining
9 * a copy of this software and associated documentation files (the
10 * "Software"), to deal in the Software without restriction, including
11 * without limitation the rights to use, copy, modify, merge, publish,
12 * distribute, sublicense, and/or sell copies of the Software, and to
13 * permit persons to whom the Software is furnished to do so, subject to
14 * the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be
17 * included in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
23 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 */
28
29 #include <stdint.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 struct barectf_default_ctx;
36 struct barectf_platform_linux_fs_ctx;
37
38 struct barectf_platform_linux_fs_ctx *barectf_platform_linux_fs_init(
39 unsigned int buf_size, const char *data_stream_file_path,
40 int simulate_full_backend, unsigned int full_backend_rand_max,
41 unsigned int full_backend_rand_lt);
42
43 void barectf_platform_linux_fs_fini(struct barectf_platform_linux_fs_ctx *ctx);
44
45 struct barectf_default_ctx *barectf_platform_linux_fs_get_barectf_ctx(
46 struct barectf_platform_linux_fs_ctx *ctx);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* _BARECTF_PLATFORM_LINUX_FS_H */