1 /*
2   Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4 
5   You may not use this file except in compliance with the License.  You may
6   obtain a copy of the License at
7 
8     https://imagemagick.org/script/license.php
9 
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15 
16   MagickCore configure methods.
17 */
18 #ifndef MAGICKCORE_CONFIGURE_H
19 #define MAGICKCORE_CONFIGURE_H
20 
21 #include "magick/hashmap.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef struct _ConfigureInfo
28 {
29   char
30     *path,
31     *name,
32     *value;
33 
34   MagickBooleanType
35     exempt,
36     stealth;
37 
38   struct _ConfigureInfo
39     *previous,
40     *next;  /* deprecated, use GetConfigureInfoList() */
41 
42   size_t
43     signature;
44 } ConfigureInfo;
45 
46 extern MagickExport char
47   **GetConfigureList(const char *,size_t *,ExceptionInfo *),
48   *GetConfigureOption(const char *);
49 
50 extern MagickExport const char
51   *GetConfigureValue(const ConfigureInfo *);
52 
53 extern MagickExport const ConfigureInfo
54   *GetConfigureInfo(const char *,ExceptionInfo *),
55   **GetConfigureInfoList(const char *,size_t *,ExceptionInfo *);
56 
57 extern MagickExport LinkedListInfo
58   *DestroyConfigureOptions(LinkedListInfo *),
59   *GetConfigurePaths(const char *,ExceptionInfo *),
60   *GetConfigureOptions(const char *,ExceptionInfo *);
61 
62 extern MagickExport MagickBooleanType
63   ConfigureComponentGenesis(void),
64   ListConfigureInfo(FILE *,ExceptionInfo *);
65 
66 extern MagickExport void
67   ConfigureComponentTerminus(void);
68 
69 #if defined(__cplusplus) || defined(c_plusplus)
70 }
71 #endif
72 
73 #endif
74