| 1 | /* $Id: options.h,v 1.1 1999-05-24 20:19:16 ktk Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Command-line options.
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright 1994 Alexandre Julliard
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #ifndef __WINE_OPTIONS_H
|
|---|
| 10 | #define __WINE_OPTIONS_H
|
|---|
| 11 |
|
|---|
| 12 | #include "windef.h"
|
|---|
| 13 |
|
|---|
| 14 | /* Supported languages */
|
|---|
| 15 | /* When adding a new language look at ole/ole2nls.c
|
|---|
| 16 | * for the LANG_Xx name to choose, and uncomment there
|
|---|
| 17 | * the proper case line
|
|---|
| 18 | */
|
|---|
| 19 | typedef enum
|
|---|
| 20 | { LANG_Xx, /* Just to ensure value 0 is not used */
|
|---|
| 21 | LANG_En, /* English */
|
|---|
| 22 | LANG_Es, /* Spanish */
|
|---|
| 23 | LANG_De, /* German */
|
|---|
| 24 | LANG_No, /* Norwegian */
|
|---|
| 25 | LANG_Fr, /* French */
|
|---|
| 26 | LANG_Fi, /* Finnish */
|
|---|
| 27 | LANG_Da, /* Danish */
|
|---|
| 28 | LANG_Cs, /* Czech */
|
|---|
| 29 | LANG_Eo, /* Esperanto */
|
|---|
| 30 | LANG_It, /* Italian */
|
|---|
| 31 | LANG_Ko, /* Korean */
|
|---|
| 32 | LANG_Hu, /* Hungarian */
|
|---|
| 33 | LANG_Pl, /* Polish */
|
|---|
| 34 | LANG_Pt, /* Portuguese */
|
|---|
| 35 | LANG_Sv, /* Swedish */
|
|---|
| 36 | LANG_Ca, /* Catalan */
|
|---|
| 37 | LANG_Nl, /* Dutch */
|
|---|
| 38 | LANG_Ru, /* Russian */
|
|---|
| 39 | LANG_Wa /* Walon */
|
|---|
| 40 | } WINE_LANGUAGE;
|
|---|
| 41 |
|
|---|
| 42 | typedef struct
|
|---|
| 43 | {
|
|---|
| 44 | const char *name;
|
|---|
| 45 | WORD langid;
|
|---|
| 46 | } WINE_LANGUAGE_DEF;
|
|---|
| 47 |
|
|---|
| 48 | extern const WINE_LANGUAGE_DEF Languages[];
|
|---|
| 49 |
|
|---|
| 50 | /* Supported modes */
|
|---|
| 51 | typedef enum
|
|---|
| 52 | {
|
|---|
| 53 | MODE_STANDARD,
|
|---|
| 54 | MODE_ENHANCED
|
|---|
| 55 | } WINE_MODE;
|
|---|
| 56 |
|
|---|
| 57 | struct options
|
|---|
| 58 | {
|
|---|
| 59 | int *argc;
|
|---|
| 60 | char **argv;
|
|---|
| 61 | char * desktopGeometry; /* NULL when no desktop */
|
|---|
| 62 | char * programName; /* To use when loading resources */
|
|---|
| 63 | char * argv0; /* argv[0] of Wine process */
|
|---|
| 64 | char *dllFlags; /* -dll flags (hack for Winelib support) */
|
|---|
| 65 | int usePrivateMap;
|
|---|
| 66 | int useFixedMap;
|
|---|
| 67 | int synchronous; /* X synchronous mode */
|
|---|
| 68 | int backingstore; /* Use backing store */
|
|---|
| 69 | short cmdShow;
|
|---|
| 70 | int debug;
|
|---|
| 71 | int failReadOnly; /* Opening a read only file will fail
|
|---|
| 72 | if write access is requested */
|
|---|
| 73 | WINE_MODE mode; /* Start Wine in selected mode
|
|---|
| 74 | (standard/enhanced) */
|
|---|
| 75 | WINE_LANGUAGE language; /* Current language */
|
|---|
| 76 | int managed; /* Managed windows */
|
|---|
| 77 | int perfectGraphics; /* Favor correctness over speed for graphics */
|
|---|
| 78 | int noDGA; /* Disable XFree86 DGA extensions */
|
|---|
| 79 | char * configFileName; /* Command line config file */
|
|---|
| 80 | int screenDepth;
|
|---|
| 81 | };
|
|---|
| 82 |
|
|---|
| 83 | extern struct options Options;
|
|---|
| 84 |
|
|---|
| 85 | /* Profile functions */
|
|---|
| 86 |
|
|---|
| 87 | extern int PROFILE_LoadWineIni(void);
|
|---|
| 88 | extern void PROFILE_UsageWineIni(void);
|
|---|
| 89 | extern int PROFILE_GetWineIniString( const char *section, const char *key_name,
|
|---|
| 90 | const char *def, char *buffer, int len );
|
|---|
| 91 | extern int PROFILE_GetWineIniInt( const char *section, const char *key_name,
|
|---|
| 92 | int def );
|
|---|
| 93 | extern int PROFILE_EnumerateWineIniSection(
|
|---|
| 94 | char const *section,
|
|---|
| 95 | void (*callback)(char const *key, char const *name, void *user),
|
|---|
| 96 | void *userptr );
|
|---|
| 97 | extern int PROFILE_GetWineIniBool( char const *section, char const *key_name,
|
|---|
| 98 | int def );
|
|---|
| 99 | extern char* PROFILE_GetStringItem( char* );
|
|---|
| 100 |
|
|---|
| 101 | /* Version functions */
|
|---|
| 102 | extern void VERSION_ParseWinVersion( const char *arg );
|
|---|
| 103 | extern void VERSION_ParseDosVersion( const char *arg );
|
|---|
| 104 |
|
|---|
| 105 | #endif /* __WINE_OPTIONS_H */
|
|---|