mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-12 09:55:33 +00:00
37 lines
657 B
C
37 lines
657 B
C
// Copyright 2019-2020, Collabora, Ltd.
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
/*!
|
|
* @file
|
|
* @brief Very simple file opening functions.
|
|
* @author Jakob Bornecrantz <jakob@collabora.com>
|
|
* @ingroup aux_util
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "xrt/xrt_compiler.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
ssize_t
|
|
u_file_get_config_dir(char *out_path, size_t out_path_size);
|
|
|
|
ssize_t
|
|
u_file_get_path_in_config_dir(const char *suffix,
|
|
char *out_path,
|
|
size_t out_path_size);
|
|
|
|
FILE *
|
|
u_file_open_file_in_config_dir(const char *filename, const char *mode);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|