xref: /haiku/src/add-ons/network_settings/dialup/MessageDriverSettingsUtils.h (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
1 /*
2  * Copyright 2003-2004 Waldemar Kornewald. All rights reserved.
3  * Copyright 2017 Haiku, Inc. All rights reserved.
4  * Distributed under the terms of the MIT License.
5  */
6 #ifndef _MESSAGE_DRIVER_SETTINGS_UTILS__H
7 #define _MESSAGE_DRIVER_SETTINGS_UTILS__H
8 
9 #include <SupportDefs.h>
10 
11 struct driver_settings;
12 class BMessage;
13 class BFile;
14 
15 #define MDSU_NAME				"Name"
16 #define MDSU_VALUES				"Values"
17 #define MDSU_PARAMETERS			"Parameters"
18 #define MDSU_VALID				"Valid"
19 
20 
21 extern bool FindMessageParameter(const char *name, const BMessage& message,
22 	BMessage *save, int32 *startIndex = NULL);
23 
24 extern driver_settings *MessageToDriverSettings(const BMessage& message);
25 
26 extern bool ReadMessageDriverSettings(const char *name, BMessage *message);
27 extern bool WriteMessageDriverSettings(BFile& file, const BMessage& message);
28 
29 
30 #endif
31