xref: /haiku/headers/private/graphics/common/create_display_modes.h (revision 1b8f7f13a3dc70e0e903cb94248220b40b732204)
1 /*
2  * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _CREATE_DISPLAY_MODES_H
6 #define _CREATE_DISPLAY_MODES_H
7 
8 
9 #include <edid.h>
10 
11 #include <Accelerant.h>
12 #include <GraphicsDefs.h>
13 
14 
15 typedef bool (*check_display_mode_hook)(display_mode *mode);
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 area_id create_display_modes(const char *name, edid1_info *edid,
22 	const display_mode *initialModes, uint32 initialModeCount,
23 	const color_space *spaces, uint32 spacesCount,
24 	check_display_mode_hook hook, display_mode **_modes, uint32 *_count);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif	/* _CREATE_DISPLAY_MODES_H */
31