GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_path.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2022-2023 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
14#ifndef GP_PATH_H
15#define GP_PATH_H
16
24char *gp_user_home(void);
25
26char *gp_compose_path_(const char *dir, ...);
27
38#define gp_compose_path(dir, ...) gp_compose_path_(dir, ##__VA_ARGS__, NULL);
39
44
57int gp_mkpath(const char *base_path, const char *path,
58 enum gp_mkpath_flags flags, int mode);
59
60#endif /* GP_USER_PATH_H */
gp_mkpath_flags
Definition gp_path.h:40
@ GP_MKPATH_HAS_FILE
Definition gp_path.h:42
int gp_mkpath(const char *base_path, const char *path, enum gp_mkpath_flags flags, int mode)
Creates a path, if it does not exists.
char * gp_user_home(void)
Returns a user home directory.