vfs: check userland buffers before reading them.
[haiku.git] / headers / private / binary_compatibility / Interface.h
blob6255b5e45910f94e57e580e3cc07a808ba102b1f
1 /*
2 * Copyright 2008, Oliver Tappe, zooey@hirschkaefer.de.
3 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef _BINARY_COMPATIBILITY_INTERFACE_H_
7 #define _BINARY_COMPATIBILITY_INTERFACE_H_
10 #include <binary_compatibility/Global.h>
13 struct perform_data_min_size {
14 BSize return_value;
17 struct perform_data_max_size {
18 BSize return_value;
21 struct perform_data_preferred_size {
22 BSize return_value;
25 struct perform_data_layout_alignment {
26 BAlignment return_value;
29 struct perform_data_has_height_for_width {
30 bool return_value;
33 struct perform_data_get_height_for_width {
34 float width;
35 float min;
36 float max;
37 float preferred;
40 struct perform_data_set_layout {
41 BLayout* layout;
44 struct perform_data_layout_invalidated {
45 bool descendants;
48 struct perform_data_get_tool_tip_at {
49 BPoint point;
50 BToolTip** tool_tip;
51 bool return_value;
54 struct perform_data_set_icon {
55 const BBitmap* icon;
56 uint32 flags;
60 #endif /* _BINARY_COMPATIBILITY_INTERFACE_H_ */