We have a static function that implements this in a similar way in the
macosx UI but it makes more sense to move it here so that other UIs can
make use of this too
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
Standardize default snapshots folder across platforms with the
introduction of VLC_SNAPSHOTS_DIR. Users can still customize this
directory in Preferences.
Resolves: #27424.
There's no other object that can handle the configuration loading/saving.
We don't need to inherit the options, they can only be in the libvlc_int_t
object. var_GetNonEmptyString() is equivalent to var_InheritString() in that
case.
Note that this now uses `unsigned char` rather than `char`, consistent
with the expectation for the `%c` format string specifier. This also
avoids using a signed value to index an array.
A quick survey of used installation directories yields those:
datadir, libdir, localedir, pkgdatadir, pkglibdir, pkglibexecdir.
The current pair of functions is up to the requirements. This provides
a more generic function prototype, similar to what is done for user
directories.
Refs #19748, #19894.
This fixes the following error.
-----
make.exe[1]: Entering directory `F:/lang/work/vlc/vlc.git/modules/demux/mkv'
CXX libmkv_plugin_la-virtual_segment.lo
In file included from ../../../include/vlc_common.h:938,
from mkv.hpp:45,
from demux.hpp:28,
from virtual_segment.cpp:27:
../../../include/vlc_configuration.h:104: error: 'ssize_t' does not name a type
../../../include/vlc_configuration.h:106: error: 'ssize_t' does not name a type
In file included from mkv.hpp:53,
from demux.hpp:28,
from virtual_segment.cpp:27:
../../../include/vlc_charset.h:153: warning: 'warn_unused_result' attribute ignored
make.exe[1]: *** [libmkv_plugin_la-virtual_segment.lo] Error 1
make.exe[1]: Leaving directory `F:/lang/work/vlc/vlc.git/modules/demux/mkv'
make.exe: *** [all] Error 2
-----
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>