![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <gtk/gtk.h>#include <string.h>
Include dependency graph for file_location.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| gchar * | dt_loc_get_home_dir (const gchar *user) |
| void | dt_loc_init (const char *datadir, const char *moduledir, const char *localedir, const char *configdir, const char *cachedir, const char *tmpdir, const char *kerneldir) |
| void | dt_loc_init_datadir (const char *application_directory, const char *datadir) |
| void | dt_loc_init_moduledir (const char *application_directory, const char *moduledir) |
| void | dt_loc_init_localedir (const char *application_directory, const char *localedir) |
| void | dt_loc_init_sharedir (const char *application_directory) |
| void | dt_loc_init_tmp_dir (const char *tmpdir) |
| void | dt_loc_init_user_config_dir (const char *configdir) |
| void | dt_loc_init_user_cache_dir (const char *cachedir) |
| void | dt_loc_init_kerneldir (const char *application_directory, const char *kerneldir) |
| gchar * | dt_loc_init_generic (const char *absolute_value, const char *application_directory, const char *default_value) |
| const char * | dt_loc_datadir (void) |
| const char * | dt_loc_sharedir (void) |
| const char * | dt_loc_moduledir (void) |
| const char * | dt_loc_localedir (void) |
| const char * | dt_loc_tmpdir (void) |
| const char * | dt_loc_configdir (void) |
| const char * | dt_loc_cachedir (void) |
| const char * | dt_loc_kerneldir (void) |
| void | dt_check_opendir (const char *text, const char *directory) |
| void | dt_loc_get_kerneldir (char *kerneldir, size_t bufsize) |
| void | dt_loc_get_datadir (char *datadir, size_t bufsize) |
| void | dt_loc_get_sharedir (char *sharedir, size_t bufsize) |
| void | dt_loc_get_moduledir (char *moduledir, size_t bufsize) |
| void | dt_loc_get_localedir (char *localedir, size_t bufsize) |
| void | dt_loc_get_tmp_dir (char *tmpdir, size_t bufsize) |
| void | dt_loc_get_user_config_dir (char *configdir, size_t bufsize) |
| void | dt_loc_get_user_cache_dir (char *cachedir, size_t bufsize) |
| void dt_check_opendir | ( | const char * | text, |
| const char * | directory | ||
| ) |
check if directory open worked. Exit with error message in case it does not.
Definition at line 234 of file file_location.c.
References directory, DT_DEBUG_DEV, dt_free, dt_print(), and IS_NULL_PTR.
Referenced by dt_loc_init_datadir(), dt_loc_init_kerneldir(), dt_loc_init_localedir(), dt_loc_init_moduledir(), dt_loc_init_sharedir(), dt_loc_init_tmp_dir(), dt_loc_init_user_cache_dir(), and dt_loc_init_user_config_dir().
| const char * dt_loc_cachedir | ( | void | ) |
Definition at line 329 of file file_location.c.
References darktable_t::cachedir, and darktable.
Referenced by dt_loc_get_user_cache_dir().
| const char * dt_loc_configdir | ( | void | ) |
Definition at line 324 of file file_location.c.
References darktable_t::configdir, and darktable.
Referenced by dt_loc_get_user_config_dir(), and main().
| const char * dt_loc_datadir | ( | void | ) |
interned read-only getters for the app-lifetime path constants. Written once at startup by the dt_loc_init_*() family, never mutated afterwards: the returned pointer is valid for the whole application lifetime. Do not free.
Definition at line 299 of file file_location.c.
References darktable, and darktable_t::datadir.
Referenced by dt_loc_get_datadir(), and main().
| void dt_loc_get_datadir | ( | char * | datadir, |
| size_t | bufsize | ||
| ) |
Definition at line 366 of file file_location.c.
References dt_loc_datadir().
Referenced by _build_softproof_gamut_popover(), _database_init(), _get_model(), _handle_get_property(), _lib_geotagging_get_timezones(), _ls_db(), _noiseprofile_load(), _splash_build_data_path(), _splash_create_logo(), _splash_load_authors(), _util_get_svg_img(), dt_copy_resource_file(), dt_curl_init(), dt_gui_gtk_init(), dt_gui_load_theme(), dt_rawspeed_load_meta(), get_language_names(), gui_init(), gui_init(), load_profile_from_dir(), load_themes(), process(), and refresh_watermarks().
| gchar * dt_loc_get_home_dir | ( | const gchar * | user | ) |
returns the users home directory
Definition at line 96 of file file_location.c.
References dt_free, and IS_NULL_PTR.
Referenced by _dt_check_basedir(), _init_expansion(), dt_conf_expand_default_dir(), and dt_util_fix_path().
| void dt_loc_get_kerneldir | ( | char * | kerneldir, |
| size_t | bufsize | ||
| ) |
Definition at line 339 of file file_location.c.
References dt_loc_kerneldir().
Referenced by dt_opencl_device_init(), and dt_opencl_md5sum().
| void dt_loc_get_localedir | ( | char * | localedir, |
| size_t | bufsize | ||
| ) |
Definition at line 349 of file file_location.c.
References dt_loc_localedir().
Referenced by dt_init(), dt_l10n_init(), get_language_names(), and main().
| void dt_loc_get_moduledir | ( | char * | moduledir, |
| size_t | bufsize | ||
| ) |
Definition at line 344 of file file_location.c.
References dt_loc_moduledir().
Referenced by dt_module_read_manifest().
| void dt_loc_get_sharedir | ( | char * | sharedir, |
| size_t | bufsize | ||
| ) |
Definition at line 370 of file file_location.c.
References dt_loc_sharedir().
Referenced by _splash_create_logo(), dt_gui_gtk_init(), and dt_init().
| void dt_loc_get_tmp_dir | ( | char * | tmpdir, |
| size_t | bufsize | ||
| ) |
Definition at line 362 of file file_location.c.
References dt_loc_tmpdir().
Referenced by _print_job_run(), dt_print_file(), and store().
| void dt_loc_get_user_cache_dir | ( | char * | cachedir, |
| size_t | bufsize | ||
| ) |
Definition at line 358 of file file_location.c.
References dt_loc_cachedir().
Referenced by _database_delete_mipmaps_files(), _opencl_driver_crash_marker_path(), dt_image_local_copy_paths_from_fullpath(), dt_image_local_copy_reset(), dt_mipmap_cache_get_filename(), and dt_opencl_device_init().
| void dt_loc_get_user_config_dir | ( | char * | configdir, |
| size_t | bufsize | ||
| ) |
Definition at line 354 of file file_location.c.
References dt_loc_configdir().
Referenced by _build_softproof_gamut_popover(), _database_init(), _database_migrate_to_xdg_structure(), _get_custom_model(), _get_model(), _handle_get_property(), _list_custom_models(), _ls_db(), _noiseprofile_load(), dt_colorchecker_find_CGATS_reference_files(), dt_colorchecker_find_cht_files(), dt_conf_expand_default_dir(), dt_folder_survey_init(), dt_gui_gtk_init(), dt_gui_load_theme(), dt_init(), dt_styles_save_to_file(), gui_init(), gui_init(), init_tab_general(), load_profile_from_dir(), load_themes(), process(), refresh_watermarks(), and save_usercss().
| void dt_loc_init | ( | const char * | datadir, |
| const char * | moduledir, | ||
| const char * | localedir, | ||
| const char * | configdir, | ||
| const char * | cachedir, | ||
| const char * | tmpdir, | ||
| const char * | kerneldir | ||
| ) |
initializes all dirs
Definition at line 66 of file file_location.c.
References DT_DEBUG_DEV, dt_free, dt_loc_init_datadir(), dt_loc_init_kerneldir(), dt_loc_init_localedir(), dt_loc_init_moduledir(), dt_loc_init_sharedir(), dt_loc_init_tmp_dir(), dt_loc_init_user_cache_dir(), dt_loc_init_user_config_dir(), and dt_print().
| void dt_loc_init_datadir | ( | const char * | application_directory, |
| const char * | datadir | ||
| ) |
init systemwide data dir
Definition at line 277 of file file_location.c.
References darktable, DARKTABLE_DATADIR, darktable_t::datadir, dt_check_opendir(), and dt_loc_init_generic().
Referenced by dt_loc_init(), and main().
| gchar * dt_loc_init_generic | ( | const char * | absolute_value, |
| const char * | application_directory, | ||
| const char * | default_value | ||
| ) |
init specific dir. Value is appended if application_directory is not NULL (relative path resolution).
bundle detected ...
outside a bundle. Apply standard linux path rules
Definition at line 141 of file file_location.c.
References dt_free, dt_osx_get_bundle_res_path(), DT_PATH_MAX, dt_util_fix_path(), FALSE, and g_realpath().
Referenced by dt_loc_init_datadir(), dt_loc_init_kerneldir(), dt_loc_init_localedir(), dt_loc_init_moduledir(), dt_loc_init_sharedir(), dt_loc_init_tmp_dir(), dt_loc_init_user_cache_dir(), and dt_loc_init_user_config_dir().
| void dt_loc_init_kerneldir | ( | const char * | application_directory, |
| const char * | kerneldir | ||
| ) |
init OpenCL kernels dir
Definition at line 289 of file file_location.c.
References darktable, DARKTABLE_KERNELSDIR, dt_check_opendir(), dt_loc_init_generic(), and darktable_t::kerneldir.
Referenced by dt_loc_init().
| void dt_loc_init_localedir | ( | const char * | application_directory, |
| const char * | localedir | ||
| ) |
init the locale dir
Definition at line 271 of file file_location.c.
References darktable, DARKTABLE_LOCALEDIR, dt_check_opendir(), dt_loc_init_generic(), and darktable_t::localedir.
Referenced by dt_loc_init().
| void dt_loc_init_moduledir | ( | const char * | application_directory, |
| const char * | moduledir | ||
| ) |
init the plugin dir
Definition at line 228 of file file_location.c.
References darktable, DARKTABLE_MODULEDIR, dt_check_opendir(), dt_loc_init_generic(), and darktable_t::moduledir.
Referenced by dt_loc_init().
| void dt_loc_init_sharedir | ( | const char * | application_directory | ) |
init share dir
Definition at line 283 of file file_location.c.
References darktable, DARKTABLE_SHAREDIR, dt_check_opendir(), dt_loc_init_generic(), and darktable_t::sharedir.
Referenced by dt_loc_init().
| void dt_loc_init_tmp_dir | ( | const char * | tmpdir | ) |
init user local dir
Definition at line 214 of file file_location.c.
References darktable, dt_check_opendir(), dt_loc_init_generic(), and darktable_t::tmpdir.
Referenced by dt_loc_init().
| void dt_loc_init_user_cache_dir | ( | const char * | cachedir | ) |
init user cache dir
Definition at line 220 of file file_location.c.
References darktable_t::cachedir, darktable, dt_check_opendir(), dt_free, and dt_loc_init_generic().
Referenced by dt_loc_init().
| void dt_loc_init_user_config_dir | ( | const char * | configdir | ) |
init user config dir
Definition at line 206 of file file_location.c.
References darktable_t::configdir, darktable, dt_check_opendir(), dt_free, and dt_loc_init_generic().
Referenced by dt_loc_init(), and main().
| const char * dt_loc_kerneldir | ( | void | ) |
Definition at line 334 of file file_location.c.
References darktable, and darktable_t::kerneldir.
Referenced by dt_loc_get_kerneldir().
| const char * dt_loc_localedir | ( | void | ) |
Definition at line 314 of file file_location.c.
References darktable, and darktable_t::localedir.
Referenced by dt_loc_get_localedir().
| const char * dt_loc_moduledir | ( | void | ) |
Definition at line 309 of file file_location.c.
References darktable, and darktable_t::moduledir.
Referenced by dt_loc_get_moduledir().
| const char * dt_loc_sharedir | ( | void | ) |
Definition at line 304 of file file_location.c.
References darktable, and darktable_t::sharedir.
Referenced by dt_loc_get_sharedir().
| const char * dt_loc_tmpdir | ( | void | ) |
Definition at line 319 of file file_location.c.
References darktable, and darktable_t::tmpdir.
Referenced by dt_loc_get_tmp_dir().