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
;
24 extern const char *full_argv0
;
25 extern unsigned int server_startticks
;
27 extern void OPTIONS_Usage(void) WINE_NORETURN
;
28 extern void OPTIONS_ParseOptions( char *argv
[] );
30 /* Profile functions */
32 extern int PROFILE_LoadWineIni(void);
33 extern void PROFILE_UsageWineIni(void);
34 extern int PROFILE_GetWineIniString( const char *section
, const char *key_name
,
35 const char *def
, char *buffer
, int len
);
36 extern BOOL
PROFILE_EnumWineIniString( const char *section
, int index
,
37 char *name
, int name_len
, char *buffer
, int len
);
38 extern int PROFILE_GetWineIniInt( const char *section
, const char *key_name
, int def
);
39 extern int PROFILE_GetWineIniBool( char const *section
, char const *key_name
, int def
);
40 extern char* PROFILE_GetStringItem( char* );
42 /* Version functions */
43 extern void VERSION_ParseWinVersion( const char *arg
);
44 extern void VERSION_ParseDosVersion( const char *arg
);
46 #define IS_OPTION_TRUE(ch) \
47 ((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
48 #define IS_OPTION_FALSE(ch) \
49 ((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')
51 #endif /* __WINE_OPTIONS_H */