vfs: check userland buffers before reading them.
[haiku.git] / src / apps / icon-o-matic / Util.h
blob167139fa75ae5e348b7c46682e4c582bbf35e98b
1 /*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef UTIL_H
9 #define UTIL_H
12 #include <GraphicsDefs.h>
14 #include "IconBuild.h"
17 class AddPathsCommand;
18 class AddStylesCommand;
20 _BEGIN_ICON_NAMESPACE
21 class PathContainer;
22 class Style;
23 class StyleContainer;
24 class VectorPath;
25 _END_ICON_NAMESPACE
27 _USING_ICON_NAMESPACE
30 void new_style(rgb_color color, StyleContainer* container,
31 Style** style, AddStylesCommand** command);
33 void new_path(PathContainer* container, VectorPath** path,
34 AddPathsCommand** command, VectorPath* other = NULL);
36 #endif // UTIL_H