Improved documentation and fixed typos.
[wine.git] / include / options.h
blob8f047aba1d5a5058cd229e2e9122259024b60ac0
1 /*
2 * Command-line options.
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_H
10 #include "wintypes.h"
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
17 typedef enum
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 } WINE_LANGUAGE;
37 typedef struct
39 const char *name;
40 WORD langid;
41 } WINE_LANGUAGE_DEF;
43 extern const WINE_LANGUAGE_DEF Languages[];
45 /* Supported modes */
46 typedef enum
48 MODE_STANDARD,
49 MODE_ENHANCED
50 } WINE_MODE;
52 struct options
54 char * desktopGeometry; /* NULL when no desktop */
55 char * programName; /* To use when loading resources */
56 char * argv0; /* argv[0] of Wine process */
57 char *dllFlags; /* -dll flags (hack for Winelib support) */
58 int usePrivateMap;
59 int useFixedMap;
60 int synchronous; /* X synchronous mode */
61 int backingstore; /* Use backing store */
62 short cmdShow;
63 int debug;
64 int failReadOnly; /* Opening a read only file will fail
65 if write access is requested */
66 WINE_MODE mode; /* Start Wine in selected mode
67 (standard/enhanced) */
68 WINE_LANGUAGE language; /* Current language */
69 int managed; /* Managed windows */
70 int perfectGraphics; /* Favor correctness over speed for graphics */
71 char * configFileName; /* Command line config file */
74 extern struct options Options;
76 /* Profile functions */
78 extern int PROFILE_LoadWineIni(void);
79 extern void PROFILE_UsageWineIni(void);
80 extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
81 const char *def, char *buffer, int len );
82 extern int PROFILE_GetWineIniInt( const char *section, const char *key_name,
83 int def );
84 extern int PROFILE_EnumerateWineIniSection(
85 char const *section,
86 void (*callback)(char const *key, char const *name, void *user),
87 void *userptr );
88 extern int PROFILE_GetWineIniBool( char const *section, char const *key_name,
89 int def );
90 extern char* PROFILE_GetStringItem( char* );
92 /* Version functions */
93 extern void VERSION_ParseVersion( char *arg );
95 #endif /* __WINE_OPTIONS_H */