dav1d: picture_Clone the output picture
[vlc.git] / src / config / configuration.h
blobec19abc89e0662c24fc830a982a49aedb188b710
1 /*****************************************************************************
2 * configuration.h management of the modules configuration
3 *****************************************************************************
4 * Copyright (C) 2007 VLC authors and VideoLAN
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
21 #ifndef LIBVLC_CONFIGURATION_H
22 # define LIBVLC_CONFIGURATION_H 1
24 # ifdef __cplusplus
25 extern "C" {
26 # endif
28 /* Internal configuration prototypes and structures */
30 int config_CreateDir( vlc_object_t *, const char * );
31 int config_AutoSaveConfigFile( vlc_object_t * );
33 void config_Free (module_config_t *, size_t);
35 int config_LoadCmdLine ( vlc_object_t *, int, const char *[], int * );
36 int config_LoadConfigFile( vlc_object_t * );
37 #define config_LoadCmdLine(a,b,c,d) config_LoadCmdLine(VLC_OBJECT(a),b,c,d)
38 #define config_LoadConfigFile(a) config_LoadConfigFile(VLC_OBJECT(a))
39 bool config_PrintHelp (vlc_object_t *);
41 int config_SortConfig (void);
42 void config_UnsortConfig (void);
44 #define CONFIG_CLASS(x) ((x) & ~0x1F)
46 #define IsConfigStringType(type) \
47 (((type) & CONFIG_ITEM_STRING) != 0)
48 #define IsConfigIntegerType(type) \
49 (((type) & CONFIG_ITEM_INTEGER) != 0)
50 #define IsConfigFloatType(type) \
51 ((type) == CONFIG_ITEM_FLOAT)
53 extern vlc_rwlock_t config_lock;
54 extern bool config_dirty;
56 bool config_IsSafe (const char *);
58 /**
59 * Gets the arch-specific installation directory.
61 * This function determines the directory containing the architecture-specific
62 * installed asset files (such as executable plugins and compiled byte code).
64 * @return a heap-allocated string (use free() to release it), or NULL on error
66 char *config_GetLibDir(void) VLC_USED VLC_MALLOC;
68 /* The configuration file */
69 #define CONFIG_FILE "vlcrc"
71 # ifdef __cplusplus
73 # endif
74 #endif