2 * Command-line options.
4 * Copyright 1994 Alexandre Julliard
7 #ifndef __WINE_OPTIONS_H
8 #define __WINE_OPTIONS_H
14 char * desktopGeometry
; /* NULL when no desktop */
15 char * display
; /* display name */
16 char *dllFlags
; /* -dll flags (hack for Winelib support) */
17 int synchronous
; /* X synchronous mode */
18 int managed
; /* Managed windows */
19 char * configFileName
; /* Command line config file */
22 extern struct options Options
;
23 extern const char *argv0
;
25 extern void OPTIONS_Usage(void) WINE_NORETURN
;
26 extern void OPTIONS_ParseOptions( char *argv
[] );
28 /* Profile functions */
30 extern int PROFILE_LoadWineIni(void);
31 extern void PROFILE_UsageWineIni(void);
32 extern int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
33 const char *def
, char *buffer
, int len
);
34 extern BOOL
PROFILE_EnumWineIniString( const char *section
, int index
,
35 char *name
, int name_len
, char *buffer
, int len
);
36 extern int PROFILE_GetWineIniInt( const char *section
, const char *key_name
, int def
);
37 extern int PROFILE_GetWineIniBool( char const *section
, char const *key_name
, int def
);
38 extern char* PROFILE_GetStringItem( char* );
40 /* Version functions */
41 extern void VERSION_ParseWinVersion( const char *arg
);
42 extern void VERSION_ParseDosVersion( const char *arg
);
44 #define IS_OPTION_TRUE(ch) \
45 ((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
46 #define IS_OPTION_FALSE(ch) \
47 ((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')
49 #endif /* __WINE_OPTIONS_H */