Store config file contents in the registry so we only have to load it
[wine] / include / options.h
1 /*
2  * Command-line options.
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_H
9
10 #include "windef.h"
11
12   /* Supported languages */
13   /* When adding a new language look at ole/ole2nls.c 
14    * for the LANG_Xx name to choose, and uncomment there
15    * the proper case line
16    */
17 typedef enum
18 {   LANG_Xx,  /* Just to ensure value 0 is not used */  
19     LANG_En,  /* English */
20     LANG_Es,  /* Spanish */
21     LANG_De,  /* German */
22     LANG_No,  /* Norwegian */
23     LANG_Fr,  /* French */
24     LANG_Fi,  /* Finnish */
25     LANG_Da,  /* Danish */
26     LANG_Cs,  /* Czech */
27     LANG_Eo,  /* Esperanto */
28     LANG_It,  /* Italian */
29     LANG_Ko,  /* Korean */
30     LANG_Hu,  /* Hungarian */
31     LANG_Pl,  /* Polish */
32     LANG_Pt,  /* Portuguese */
33     LANG_Sv,  /* Swedish */
34     LANG_Ca,  /* Catalan */
35     LANG_Nl,  /* Dutch */
36     LANG_Ru,  /* Russian */
37     LANG_Wa,   /* Walon */
38     LANG_Br,  /* Breton */
39     LANG_Cy,  /* Welsh */
40     LANG_Ga,  /* Irish Gaelic */
41     LANG_Gd,  /* Scots Gaelic */
42     LANG_Gv,  /* Manx Gaelic */
43     LANG_Kw   /* Cornish */
44 } WINE_LANGUAGE;
45
46 typedef struct
47 {
48     const char *name;
49     WORD        langid;
50 } WINE_LANGUAGE_DEF;
51
52 extern const WINE_LANGUAGE_DEF Languages[];
53
54 struct options
55 {
56     int  *argc;
57     char **argv;
58     char * desktopGeometry; /* NULL when no desktop */
59     char * programName;     /* To use when loading resources */
60     char  *dllFlags;        /* -dll flags (hack for Winelib support) */
61     int    usePrivateMap;
62     int    synchronous;     /* X synchronous mode */
63     int    debug;
64     int    failReadOnly;    /* Opening a read only file will fail
65                                if write access is requested */
66     WINE_LANGUAGE language; /* Current language */
67     int    managed;         /* Managed windows */
68     int    perfectGraphics; /* Favor correctness over speed for graphics */
69     int    noDGA;           /* Disable XFree86 DGA extensions */
70     int    noXSHM;          /* Disable use of XSHM extension */
71     int    DXGrab;          /* Enable DirectX mouse grab */
72     char * configFileName;  /* Command line config file */
73     int screenDepth;
74 };
75
76 extern struct options Options;
77 extern const char *argv0;
78
79 /* Profile functions */
80
81 extern const char *PROFILE_GetConfigDir(void);
82 extern int PROFILE_LoadWineIni(void);
83 extern void PROFILE_UsageWineIni(void);
84 extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
85                                      const char *def, char *buffer, int len );
86 extern BOOL PROFILE_EnumWineIniString( const char *section, int index,
87                                        char *name, int name_len, char *buffer, int len );
88 extern int PROFILE_GetWineIniInt( const char *section, const char *key_name, int def );
89 extern int PROFILE_GetWineIniBool( char const *section, char const *key_name, int def );
90 extern char* PROFILE_GetStringItem( char* );
91
92 /* Version functions */
93 extern void VERSION_ParseWinVersion( const char *arg );
94 extern void VERSION_ParseDosVersion( const char *arg );
95
96 #endif  /* __WINE_OPTIONS_H */