Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
variables.h File Reference
#include <glib.h>
#include <stdint.h>
+ Include dependency graph for variables.h:
+ This graph shows which files directly or indirectly include this file:

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 Documentation

◆ dt_variables_params_t

Function Documentation

◆ dt_get_user_pictures_dir()

gboolean dt_get_user_pictures_dir ( const gchar *  homedir,
gchar *  picdir,
size_t  picdir_size 
)

Gets the path to the current OS pictures directory.

Parameters
homedirthe user's home directory
picdirthe gchar* to set to the path of the pictures directory
picdir_sizethe size of picdir
Returns
gboolean Returns TRUE if success.

References PATH_MAX.

Referenced by _dt_check_basedir(), and _init_expansion().

◆ dt_variables_expand()

char * dt_variables_expand ( dt_variables_params_t params,
gchar *  source,
gboolean  iterate 
)

◆ dt_variables_params_destroy()

void dt_variables_params_destroy ( dt_variables_params_t params)

◆ dt_variables_params_init()

◆ dt_variables_reset_sequence()

void dt_variables_reset_sequence ( dt_variables_params_t params)

reset sequence number

◆ dt_variables_set_datetime()

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().

◆ dt_variables_set_max_width_height()

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().

◆ dt_variables_set_tags_flags()

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().