vfs: check userland buffers before reading them.
[haiku.git] / src / servers / launch / SettingsParser.h
blob4ae40b9b350cee310df02faa08dbe0629635a838
1 /*
2 * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SETTINGS_PARSER_H
6 #define SETTINGS_PARSER_H
9 #include <Message.h>
12 class SettingsParser {
13 public:
14 SettingsParser();
16 status_t ParseFile(const char* path, BMessage& settings);
18 #ifdef TEST_HAIKU
19 status_t Parse(const char* text, BMessage& settings);
20 #endif
24 #endif // SETTINGS_PARSER_H