The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 1 | /* Copyright (C) 2007-2008 The Android Open Source Project |
| 2 | ** |
| 3 | ** This software is licensed under the terms of the GNU General Public |
| 4 | ** License version 2, as published by the Free Software Foundation, and |
| 5 | ** may be copied, distributed, and modified under those terms. |
| 6 | ** |
| 7 | ** This program is distributed in the hope that it will be useful, |
| 8 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | ** GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef _ANDROID_GLOBALS_H |
| 13 | #define _ANDROID_GLOBALS_H |
| 14 | |
| 15 | #include "android/avd/info.h" |
| 16 | #include "android/avd/hw-config.h" |
| 17 | |
David 'Digit' Turner | 2cab5d5 | 2014-02-27 18:40:34 +0100 | [diff] [blame] | 18 | /* Maximum numbers of emulators that can run concurrently without |
| 19 | * forcing their port numbers with the -port option. |
| 20 | * This is not a hard limit. Instead, when starting up, the program |
| 21 | * will trying to bind to localhost ports 5554 + n*2, for n in |
| 22 | * [0..MAX_EMULATORS), if it fails, it will refuse to start. |
| 23 | * You can route around this by using the -port or -ports options |
| 24 | * to specify the ports manually. |
| 25 | */ |
| 26 | #define MAX_ANDROID_EMULATORS 64 |
| 27 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 28 | /* this structure is setup when loading the virtual device |
| 29 | * after that, you can read the 'flags' field to determine |
| 30 | * wether a data or cache wipe has been in effect. |
| 31 | */ |
| 32 | extern AvdInfoParams android_avdParams[1]; |
| 33 | |
| 34 | /* a pointer to the android virtual device information |
| 35 | * object, which can be queried for the paths of various |
| 36 | * image files or the skin |
| 37 | */ |
| 38 | extern AvdInfo* android_avdInfo; |
| 39 | |
| 40 | /* the hardware configuration for this specific virtual device */ |
| 41 | extern AndroidHwConfig android_hw[1]; |
| 42 | |
| 43 | #endif /* _ANDROID_GLOBALS_H */ |