2 * Command-line options.
4 * Copyright 1994 Alexandre Julliard
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_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
18 { LANG_Xx
, /* Just to ensure value 0 is not used */
19 LANG_En
, /* English */
20 LANG_Es
, /* Spanish */
22 LANG_No
, /* Norwegian */
24 LANG_Fi
, /* Finnish */
27 LANG_Eo
, /* Esperanto */
28 LANG_It
, /* Italian */
30 LANG_Hu
, /* Hungarian */
32 LANG_Pt
, /* Portuguese */
34 LANG_Sv
, /* Swedish */
35 LANG_Ca
, /* Catalan */
37 LANG_Ru
, /* Russian */
41 LANG_Ga
, /* Irish Gaelic */
42 LANG_Gd
, /* Scots Gaelic */
43 LANG_Gv
, /* Manx Gaelic */
44 LANG_Kw
, /* Cornish */
45 LANG_Ja
, /* Japanese */
46 LANG_Hr
/* Croatian */
55 extern const WINE_LANGUAGE_DEF Languages
[];
59 char * desktopGeometry
; /* NULL when no desktop */
60 char * display
; /* display name */
61 char *dllFlags
; /* -dll flags (hack for Winelib support) */
62 int synchronous
; /* X synchronous mode */
63 WINE_LANGUAGE language
; /* Current language */
64 int managed
; /* Managed windows */
65 char * configFileName
; /* Command line config file */
68 extern struct options Options
;
69 extern const char *argv0
;
71 extern void OPTIONS_Usage(void) WINE_NORETURN
;
72 extern void OPTIONS_ParseOptions( char *argv
[] );
74 /* Profile functions */
76 extern int PROFILE_LoadWineIni(void);
77 extern void PROFILE_UsageWineIni(void);
78 extern int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
79 const char *def
, char *buffer
, int len
);
80 extern BOOL
PROFILE_EnumWineIniString( const char *section
, int index
,
81 char *name
, int name_len
, char *buffer
, int len
);
82 extern int PROFILE_GetWineIniInt( const char *section
, const char *key_name
, int def
);
83 extern int PROFILE_GetWineIniBool( char const *section
, char const *key_name
, int def
);
84 extern char* PROFILE_GetStringItem( char* );
86 /* Version functions */
87 extern void VERSION_ParseWinVersion( const char *arg
);
88 extern void VERSION_ParseDosVersion( const char *arg
);
90 #define IS_OPTION_TRUE(ch) \
91 ((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
92 #define IS_OPTION_FALSE(ch) \
93 ((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')
95 #endif /* __WINE_OPTIONS_H */