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