Solvline Eddy DKV2.1.0.3 User Manual
Page 83

Chapter 6. Library
Introduction
83
Format
void SB_GetVersion (int type, char *version);
Parameter
type
Specifies the version function reads.
‘B’: Eddy’s bootloader version
‘K’: Eddy’s O/S version
‘F’: Eddy’s file system version
Version
Pointer where version information string will be stored.
Returns
None
Notice
Version information will be read like ‚1.0a.‛
BootLoader and O/S will be provided by SystemBase; therefore these
cannot be changed. In case file system is programmed by the user, the
version can be set by the user.
When the parameter type other than ‘B’ ,’K’, ‘F’ are called, the
function will return ‚0.00‛ as version information.
SB_ReadConfig
Function
Reads Eddy’s operating environment configuration file.
Format
void SB_ReadConfig (char *FileName, char *Dest, int Size);
Parameter
FileName
File name that includes the path of the file to be read.
*Dest
Pointer to the buffer in which the configuration file will be
stored.
Size
The size of the file to be read.
Returns
Error Code
Returns 1 if succeeded, -1 if failed.
Notice
Configuration file in Eddy is stored in /etc, /flash. Configuration changes
made through web or telent is stored here and all Eddy applications
operates with respect to configuration files here.
SB_WriteConfig
Function
Saves Eddy’s operating environment configuration information into file.
Format
void SB_WriteConfig (char *FileName, char *Source, int Size);
Parameter
FileName
File name that includes path of the file to be written.
Source
Pointer to the struct buffer in which the configuration
information is saved.
Size
Size of the struct to be written.
Returns
Error Code
Return 1 if succeeded, -1 if failed.
Notice
SB_GetSharedMemory