vfs: check userland buffers before reading them.
[haiku.git] / src / servers / input / PathList.h
blobd8892498c61c94ef9651cc8263726423d5e8f0c2
1 /*
2 * Copyright 2008 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
8 #ifndef PATH_LIST_H
9 #define PATH_LIST_H
12 #include <ObjectList.h>
15 class PathList {
16 public:
17 PathList();
18 ~PathList();
20 bool HasPath(const char* path,
21 int32* _index = NULL) const;
22 status_t AddPath(const char* path);
23 status_t RemovePath(const char* path);
25 int32 CountPaths() const;
26 const char* PathAt(int32 index) const;
27 private:
28 struct path_entry;
30 BObjectList<path_entry> fPaths;
33 #endif // _DEVICE_MANAGER_H