Monado OpenXR Runtime
u_file.h
Go to the documentation of this file.
1 // Copyright 2019-2020, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Very simple file opening functions.
6  * @author Jakob Bornecrantz <jakob@collabora.com>
7  * @ingroup aux_util
8  */
9 
10 #pragma once
11 
12 #include "xrt/xrt_compiler.h"
13 
14 #include <stdio.h>
15 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 
22 ssize_t
23 u_file_get_config_dir(char *out_path, size_t out_path_size);
24 
25 ssize_t
26 u_file_get_path_in_config_dir(const char *suffix,
27  char *out_path,
28  size_t out_path_size);
29 
30 FILE *
31 u_file_open_file_in_config_dir(const char *filename, const char *mode);
32 
33 
34 #ifdef __cplusplus
35 }
36 #endif
ssize_t u_file_get_config_dir(char *out_path, size_t out_path_size)
Definition: u_file.c:52
FILE * u_file_open_file_in_config_dir(const char *filename, const char *mode)
Definition: u_file.c:84
Header holding common defines.
ssize_t u_file_get_path_in_config_dir(const char *suffix, char *out_path, size_t out_path_size)
Definition: u_file.c:70