options.h 1.43 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5 6
/*
 * Command-line options.
 *
 * Copyright 1994 Alexandre Julliard
 */

Alexandre Julliard's avatar
Alexandre Julliard committed
7 8
#ifndef __WINE_OPTIONS_H
#define __WINE_OPTIONS_H
Alexandre Julliard's avatar
Alexandre Julliard committed
9

10
#include "windef.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
11

Alexandre Julliard's avatar
Alexandre Julliard committed
12 13
struct options
{
Alexandre Julliard's avatar
Alexandre Julliard committed
14
    int    managed;	    /* Managed windows */
Alexandre Julliard's avatar
Alexandre Julliard committed
15 16 17
};

extern struct options Options;
18
extern const char *argv0;
19
extern const char *full_argv0;
20
extern unsigned int server_startticks;
Alexandre Julliard's avatar
Alexandre Julliard committed
21

22
extern void OPTIONS_Usage(void) WINE_NORETURN;
23
extern void OPTIONS_ParseOptions( char *argv[] );
24

Alexandre Julliard's avatar
Alexandre Julliard committed
25 26 27
/* Profile functions */

extern int PROFILE_LoadWineIni(void);
Alexandre Julliard's avatar
Alexandre Julliard committed
28
extern void PROFILE_UsageWineIni(void);
Alexandre Julliard's avatar
Alexandre Julliard committed
29 30
extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
                                     const char *def, char *buffer, int len );
31 32 33 34
extern BOOL PROFILE_EnumWineIniString( const char *section, int index,
                                       char *name, int name_len, char *buffer, int len );
extern int PROFILE_GetWineIniInt( const char *section, const char *key_name, int def );
extern int PROFILE_GetWineIniBool( char const *section, char const *key_name, int def );
Alexandre Julliard's avatar
Alexandre Julliard committed
35
extern char* PROFILE_GetStringItem( char* );
Alexandre Julliard's avatar
Alexandre Julliard committed
36

Alexandre Julliard's avatar
Alexandre Julliard committed
37
/* Version functions */
38 39
extern void VERSION_ParseWinVersion( const char *arg );
extern void VERSION_ParseDosVersion( const char *arg );
Alexandre Julliard's avatar
Alexandre Julliard committed
40

41 42 43 44 45
#define IS_OPTION_TRUE(ch) \
    ((ch) == 'y' || (ch) == 'Y' || (ch) == 't' || (ch) == 'T' || (ch) == '1')
#define IS_OPTION_FALSE(ch) \
    ((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')

Alexandre Julliard's avatar
Alexandre Julliard committed
46
#endif  /* __WINE_OPTIONS_H */