Added memory-stored debug output to safe mode.
[cake.git] / workbench / prefs / network / prefsdata.h
bloba2cfbf8781effc656d619dfd45a7d3f5b52b6964
1 /*
2 Copyright © 2009, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/types.h>
8 #define PREFS_PATH_ENV "ENV:AROSTCP"
9 #define PREFS_PATH_ENVARC "ENVARC:AROSTCP"
10 #define AROSTCP_PACKAGE_VARIABLE "SYS/Packages/AROSTCP"
12 enum ErrorCode
14 ALL_OK,
15 UNKNOWN_ERROR,
16 NOT_SAVED_PREFS_ENV,
17 NOT_SAVED_PREFS_ENVARC,
18 NOT_COPIED_FILES_ENV,
19 NOT_COPIED_FILES_ENVARC,
20 NOT_RESTARTED_STACK
23 struct TCPPrefs
25 TEXT IP[64];
26 TEXT mask[64];
27 TEXT gate[64];
28 TEXT DNS[2][64];
29 BOOL DHCP;
30 TEXT device[512];
31 TEXT host[512];
32 TEXT domain[512];
33 BOOL autostart;
36 void InitNetworkPrefs(CONST_STRPTR directory, BOOL use, BOOL save);
37 enum ErrorCode SaveNetworkPrefs();
38 enum ErrorCode UseNetworkPrefs();
41 STRPTR GetIP();
42 STRPTR GetMask();
43 STRPTR GetGate();
44 STRPTR GetDNS(LONG m);
45 BOOL GetDHCP();
46 STRPTR GetDevice();
47 STRPTR GetHost();
48 STRPTR GetDomain();
49 BOOL GetAutostart();
51 void SetIP(STRPTR w);
52 void SetMask(STRPTR w);
53 void SetGate(STRPTR w);
54 void SetDNS(LONG m, STRPTR w);
55 void SetDHCP(BOOL w);
56 void SetDevice(STRPTR w);
57 void SetHost(STRPTR w);
58 void SetDomain(STRPTR w);
59 void SetAutostart(BOOL w);