fsp_plms_LoadConfig()
Load configuration into PLMS
Synopsis:
#include <fsp/plms.h>
fsp_ResultType fsp_plms_LoadConfig( fsp_plms_HandleType *plms_hdl,
char* file_name );
Arguments:
- plms_hdl
- The PLMS handle returned in fsp_plms_Connect().
- file_name
- The configuration file to be loaded to PLMS.
Library:
libplms
Use the -l plms option to qcc to link against this library.
Description:
The fsp_plms_LoadConfig() loads a configuration file into PLMS.
The fsp_plms_LoadConfig() is a blocking call that returns when
the configuration file has been parsed and added to the PLMS database, or on error.
The fsp_plms_LoadConfig() should be used infrequently as it can
interfere with the system startup and cause delays. If the configuration file is
already loaded in the PLMS, then the call returns success. If there are errors in
the file processing, the configuration file is rejected, and an error is returned.
The caller must have the plms/control ability to use this call.
Returns:
Returns FSP_PLMS_STATUS_EOK on success, or FSP_PLMS_STATUS_FAIL on error and sets errno.
Errors:
- ENOSYS
- The resource manager ID is incorrect.
- EBADMSG
- The resource manager received an incomplete or combined client message.
Example:
fsp_plms_LoadConfig(plms_hdl, “/ifs2/swdownload.cfg”);
