vfs: check userland buffers before reading them.
[haiku.git] / headers / private / interface / InterfacePrivate.h
blobfead585903b0181fedde0cfe1db0ec35f05b405b
1 /*
2 * Copyright 2007-2009, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stefano Ceccherini <stefano.ceccherini@gmail.com>
7 */
8 #ifndef _INTERFACE_PRIVATE_H
9 #define _INTERFACE_PRIVATE_H
12 #include <GraphicsDefs.h>
13 #include <SupportDefs.h>
16 void _init_global_fonts_();
17 extern "C" status_t _fini_interface_kit_();
20 namespace BPrivate {
22 bool get_mode_parameter(uint32 mode, int32& width, int32& height,
23 uint32& colorSpace);
24 int32 get_bytes_per_row(color_space colorSpace, int32 width);
26 void get_workspaces_layout(uint32* _columns, uint32* _rows);
27 void set_workspaces_layout(uint32 columns, uint32 rows);
29 } // namespace BPrivate
32 #endif // _INTERFACE_PRIVATE_H