![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <glib.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | dt_variables_params_t |
Typedefs | |
typedef struct dt_variables_params_t | dt_variables_params_t |
Functions | |
void | dt_variables_params_init (dt_variables_params_t **params) |
void | dt_variables_params_destroy (dt_variables_params_t *params) |
void | dt_variables_set_max_width_height (dt_variables_params_t *params, int max_width, int max_height) |
void | dt_variables_set_tags_flags (dt_variables_params_t *params, uint32_t flags) |
void | dt_variables_set_datetime (dt_variables_params_t *params, GDateTime *datetime) |
char * | dt_variables_expand (dt_variables_params_t *params, gchar *source, gboolean iterate) |
void | dt_variables_reset_sequence (dt_variables_params_t *params) |
gboolean | dt_get_user_pictures_dir (const gchar *homedir, gchar *picdir, size_t picdir_size) |
Gets the path to the current OS pictures directory. | |
typedef struct dt_variables_params_t dt_variables_params_t |
gboolean dt_get_user_pictures_dir | ( | const gchar * | homedir, |
gchar * | picdir, | ||
size_t | picdir_size | ||
) |
Gets the path to the current OS pictures directory.
homedir | the user's home directory |
picdir | the gchar* to set to the path of the pictures directory |
picdir_size | the size of picdir |
gboolean
Returns TRUE if success. References PATH_MAX.
Referenced by _dt_check_basedir(), and _init_expansion().
char * dt_variables_expand | ( | dt_variables_params_t * | params, |
gchar * | source, | ||
gboolean | iterate | ||
) |
expands variables in string. the result should be freed with g_free().
References _cleanup_expansion(), _expand_source(), and _init_expansion().
Referenced by _dt_check_basedir(), _watermark_get_svgdoc(), dt_build_filename_from_pattern(), dt_exif_xmp_attach_export(), dt_view_image_info_update(), run_test(), and store().
void dt_variables_params_destroy | ( | dt_variables_params_t * | params | ) |
destroys an initialized dt_variables_params_t, pointer is garbage after this call.
Referenced by _dt_check_basedir(), _watermark_get_svgdoc(), dt_build_filename_from_pattern(), dt_exif_xmp_attach_export(), dt_view_image_info_update(), free_params(), and run_test().
void dt_variables_params_init | ( | dt_variables_params_t ** | params | ) |
allocate and initializes a dt_variables_params_t.
Referenced by _dt_check_basedir(), _watermark_get_svgdoc(), dt_build_filename_from_pattern(), dt_exif_xmp_attach_export(), dt_view_image_info_update(), get_params(), and run_test().
void dt_variables_reset_sequence | ( | dt_variables_params_t * | params | ) |
reset sequence number
void dt_variables_set_datetime | ( | dt_variables_params_t * | params, |
GDateTime * | datetime | ||
) |
reset the date arbitrarily, decrementing reference count of the previous date
Referenced by dt_build_filename_from_pattern().
void dt_variables_set_max_width_height | ( | dt_variables_params_t * | params, |
int | max_width, | ||
int | max_height | ||
) |
set max image width and height defined for an export session in a dt_variables_params_t.
Referenced by store().
void dt_variables_set_tags_flags | ( | dt_variables_params_t * | params, |
uint32_t | flags | ||
) |
set flags for tags to be exported
References flags.
Referenced by _watermark_get_svgdoc(), and dt_exif_xmp_attach_export().