Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
/* SPDX-License-Identifier: Zlib */
#ifndef GIRARA_UTILS_H
#define GIRARA_UTILS_H
#include <stdbool.h>
#include "macros.h"
#include "types.h"
typedef enum {
XDG_CONFIG,
XDG_DATA,
XDG_CONFIG_DIRS,
XDG_DATA_DIRS,
XDG_CACHE,
} girara_xdg_path_t;
char* girara_get_home_directory(const char* user) GIRARA_VISIBLE;
char* girara_get_xdg_path(girara_xdg_path_t path) GIRARA_VISIBLE;
bool girara_xdg_open(const char* uri) GIRARA_VISIBLE;
bool girara_xdg_open_with_working_directory(const char* uri, const char* working_directory) GIRARA_VISIBLE;
char* girara_fix_path(const char* path) GIRARA_VISIBLE;
char* girara_escape_string(const char* value) GIRARA_VISIBLE;
char* girara_replace_substring(const char* string, const char* old, const char* new) GIRARA_VISIBLE;
const char* girara_version(void) GIRARA_VISIBLE;
#endif
macros.h
GIRARA_VISIBLE
#define GIRARA_VISIBLE
Definition macros.h:52
types.h
girara_xdg_path_t
girara_xdg_path_t
Definition utils.h:14
XDG_DATA_DIRS
@ XDG_DATA_DIRS
Definition utils.h:18
XDG_CACHE
@ XDG_CACHE
Definition utils.h:19
XDG_DATA
@ XDG_DATA
Definition utils.h:16
XDG_CONFIG
@ XDG_CONFIG
Definition utils.h:15
XDG_CONFIG_DIRS
@ XDG_CONFIG_DIRS
Definition utils.h:17
girara_get_home_directory
char * girara_get_home_directory(const char *user) GIRARA_VISIBLE
girara_xdg_open
bool girara_xdg_open(const char *uri) GIRARA_VISIBLE
girara_escape_string
char * girara_escape_string(const char *value) GIRARA_VISIBLE
girara_fix_path
char * girara_fix_path(const char *path) GIRARA_VISIBLE
girara_replace_substring
char * girara_replace_substring(const char *string, const char *old, const char *new) GIRARA_VISIBLE
girara_version
const char * girara_version(void) GIRARA_VISIBLE
girara_get_xdg_path
char * girara_get_xdg_path(girara_xdg_path_t path) GIRARA_VISIBLE
girara_xdg_open_with_working_directory
bool girara_xdg_open_with_working_directory(const char *uri, const char *working_directory) GIRARA_VISIBLE