Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ZrythmDirectoryManager Class Reference

Public Member Functions

char * get_user_dir (bool force_default)
 Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm).
 
char * get_default_user_dir ()
 Returns the default user "zrythm" dir.
 
char * get_dir (ZrythmDirType type)
 Returns a Zrythm directory specified by type.
 

Data Fields

char * testing_dir = nullptr
 Zrythm directory used during unit tests.
 

Detailed Description

Definition at line 178 of file zrythm.h.

Member Function Documentation

◆ get_default_user_dir()

char * ZrythmDirectoryManager::get_default_user_dir ( )

Returns the default user "zrythm" dir.

This is used when resetting or when the dir is not selected by the user yet.

◆ get_dir()

char * ZrythmDirectoryManager::get_dir ( ZrythmDirType type)

Returns a Zrythm directory specified by type.

Returns
A newly allocated string.

◆ get_user_dir()

char * ZrythmDirectoryManager::get_user_dir ( bool force_default)

Gets the zrythm directory, either from the settings if non-empty, or the default ($XDG_DATA_DIR/zrythm).

Parameters
force_defaultIgnore the settings and get the default dir.

Must be free'd by caller.

Field Documentation

◆ testing_dir

char* ZrythmDirectoryManager::testing_dir = nullptr

Zrythm directory used during unit tests.

Definition at line 207 of file zrythm.h.


The documentation for this class was generated from the following file: