1 #ifndef __MLPISECURITYLIB_H__ 2 #define __MLPISECURITYLIB_H__ 167 #define MLPI_SECURIY_NETWORKSERVICE_MAX_NAME_LEN (16) 168 #define MLPI_SECURIY_MAX_NETWORKSERVICES (16) 169 #define MLPI_SECURITY_NETWORKCONFIGVALUE_MAX_NAME_LEN (32) 170 #define MLPI_SECURITY_NETWORKCONFIGVALUE_MAX_VALUE_LEN (128) 173 #define MLPI_SECURITY_NETWORKSERVICE_FTP L"FTP" 174 #define MLPI_SECURITY_NETWORKSERVICE_SSH L"SSH" 175 #define MLPI_SECURITY_NETWORKSERVICE_MLPI L"MLPI" 176 #define MLPI_SECURITY_NETWORKSERVICE_MLPIS L"MLPIS" 177 #define MLPI_SECURITY_NETWORKSERVICE_OPCUA L"OPCUA" 178 #define MLPI_SECURITY_NETWORKSERVICE_SIS L"SIS" 207 #if !defined(TARGET_OS_VXWORKS) 222 WCHAR16 networkServiceName[MLPI_SECURIY_NETWORKSERVICE_MAX_NAME_LEN];
243 #if !defined(TARGET_OS_VXWORKS) 261 #if defined(TARGET_OS_WINNT) 262 #if defined(MLPI_EXPORTS) 263 #define MLPI_API __declspec(dllexport) 264 #elif defined(MLPI_IMPORTS) 265 #define MLPI_API __declspec(dllimport) 270 #if defined(MLPI_EXPORTS) 271 #define MLPI_API __attribute__ ((visibility("default"))) 272 #elif defined(MLPI_IMPORTS) MlpiSecurityServiceControl
This enumeration describes the control possibilities of an specific network service.
long MLPIRESULT
common MLPI-API return value
Protocol can be switched on an off.
MlpiSecurityServiceState
This enumeration describes the possible states of the network services.
struct MlpiNetworkConfigurationValue MlpiNetworkConfigurationValue
This structure provides one configuration value about a specific network-service. ...
wchar_t WCHAR16
UTF16 string.
Protocol can be switched off.
MLPIRESULT mlpiSecurityGetNetworkServiceInformation(const MLPIHANDLE connection, MlpiNetworkServiceInfo *serviceInformation, const ULONG numElements, ULONG *numElementsRet)
This function returns information regarding all the network services available on the target device...
Protocol can be switched on.
struct MlpiNetworkServiceInfo MlpiNetworkServiceInfo
This structure provides all information about a specific network-service.
MLPIRESULT mlpiSecuritySetNetworkServiceConfiguration(const MLPIHANDLE connection, const WCHAR16 *service, MlpiNetworkConfigurationValue *const config, const ULONG numElements)
This function sets the configurations for selected network services.
MLPIRESULT mlpiSecurityGetNetworkServiceConfiguration(const MLPIHANDLE connection, const WCHAR16 *service, MlpiNetworkConfigurationValue *const config, const ULONG numElements, ULONG *const numElementsRet)
This function returns current configuration for all network services.
MLPIRESULT mlpiSecuritySetNetworkServiceActivation(const MLPIHANDLE connection, const WCHAR16 *service, const MlpiSecurityServiceState state)
This function activates or deactivates a specific network service.
unsigned long ULONG
4 byte unsigned integer
Protocol state can not be changed.
unsigned long MLPIHANDLE
common MLPI-API handle value
MLPIRESULT mlpiSecurityGetNetworkServiceActivation(const MLPIHANDLE connection, const WCHAR16 *service, MlpiSecurityServiceState *state)
This function obtains the current activation state for a specific network service.
#define MLPI_STRUCT_ALIGN_WCHAR16
2 byte char, aligned within structs to MLPI data type WCHAR16