2 * Copyright 2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _NET_SETTINGS_H
6 #define _NET_SETTINGS_H
9 #include <SupportDefs.h>
13 #endif /* __cplusplus */
17 typedef struct _ns_entry
{
22 typedef struct _ns_section
{
29 /* public type (data members are private) */
30 typedef struct _net_settings
{
33 _ns_section_t
* _sections
;
37 /* finding and setting network preferences */
38 extern char* find_net_setting(net_settings
* ncw
, const char* heading
,
39 const char* name
, char* value
, unsigned nbytes
);
41 extern status_t
set_net_setting(net_settings
* ncw
, const char* heading
,
42 const char* name
, const char* value
);
47 #endif /* __cplusplus */
49 #endif /* _NET_SETTINGS_H */