xref: /haiku/src/add-ons/kernel/network/ppp/shared/libppp/headers/MessageDriverSettingsUtils.h (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /*
2  * Copyright 2004, Waldemar Kornewald <wkornew@gmx.net>
3  * Distributed under the terms of the MIT License.
4  */
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