1 #ifndef __MLPIAPILIB_H__ 2 #define __MLPIAPILIB_H__ 253 #define MLPI_CONNECT_IDENT_LENGTH (1024) 254 #define MLPI_DEFAULTPORT (5300) 255 #define MLPI_DEFAULTSECUREPORT (5335) 256 #define MLPI_INFINITE (0xFFFFFFFF) 257 #define MLPI_TIMEOUT_OS (0) 258 #define MLPI_MAX_PAYLOAD (500000) 260 #define MLPI_API_CONNECTION_NAME_LEN (128) 261 #define MLPI_API_CONNECTION_URI_LEN (128) 262 #define MLPI_API_CONNECTION_LABEL_LEN (254) 263 #define MLPI_API_CONNECTION_USER_LEN (128) 264 #define MLPI_API_CONNECTION_PWD_LEN (128) 266 #define MLPI_API_LIBRARY_NAME_LEN (64) 268 #define MLPI_API_MAX_NUMBER_OF_CONNECTIONS (50) 271 static const WCHAR16 MLPI_ACCOUNT_EMPTY_NAME[] = {
'_',
'A',
'C',
'C',
'O',
'U',
'N',
'T',
'_',
'E',
'M',
'P',
'T',
'Y',
'_',
'N',
'A',
'M',
'E',
'_',
'\0'};
292 #if !defined(TARGET_OS_VXWORKS) 341 ULONG requestCounter;
362 #if !defined(TARGET_OS_VXWORKS) 377 #if defined(TARGET_OS_WINNT) 378 #if defined(MLPI_EXPORTS) 379 #define MLPI_API __declspec(dllexport) 380 #elif defined(MLPI_IMPORTS) 381 #define MLPI_API __declspec(dllimport) 386 #if defined(MLPI_EXPORTS) 387 #define MLPI_API __attribute__ ((visibility("default"))) 388 #elif defined(MLPI_IMPORTS) 1270 #endif // endof: #ifndef __MLPIAPILIB_H__ MLPIRESULT mlpiApiConnect(const WCHAR16 *connectionIdentifier, MLPIHANDLE *connection)
This function connects the user application with a specified MLC/MLP/XLC. The first argument of the c...
MLPIRESULT mlpiApiGetAllConnectionDescription(const MLPIHANDLE connection, MlpiConnectionDescription *description, const ULONG numElements, ULONG *numElementsRet)
This function will return information about all established connections of the device.
long MLPIRESULT
common MLPI-API return value
MLPIRESULT mlpiApiGetClientCoreVersion(MlpiVersion *versionInfo)
This function returns the version info of the MLPI client library.
MLPIRESULT mlpiApiGetServerCoreVersion(const MLPIHANDLE connection, MlpiVersion *versionInfo)
This function returns the version info of the MLPI server library.
struct MlpiVersion MlpiVersion
Describes the API version information. The build number counts continuously within a major release...
struct MlpiLibrary MlpiLibrary
This structure is used by the function mlpiApiGetLibrarySupport to return information about available...
MLPIRESULT mlpiApiSetLabelOfConnection(const MLPIHANDLE connection, const WCHAR16 *label)
Using this function, you can assign a long descriptive label to your connection. It is not necessary ...
unsigned long long ULLONG
8 byte unsigned integer
#define MLPI_API_CONNECTION_LABEL_LEN
Length of user-defined label of connection.
MLPIRESULT mlpiApiUserAccountControlReload(const MLPIHANDLE connection)
This function provides the reloading of all currently loaded account manifests know as 'accounts...
signed char BOOL8
1 byte boolean
MLPIRESULT mlpiApiIsConnected(const MLPIHANDLE connection, BOOL8 *isConnected)
This function returns the current state of the MLPI connection. If FALSE is returned, then the connection is either not yet established or closed because of an error in communication or because mlpiApiDisconnect has been called. In all cases a reconnect using mlpiApiConnect has to be made to make new MLPI function calls. If connection is lost for unknown reason, try increasing the connection timeout using mlpiApiSetDefaultTimeout.
#define MLPI_API_CONNECTION_URI_LEN
Length of URI of connection.
MLPIRESULT mlpiApiGetAccounts(const MLPIHANDLE connection, WCHAR16 *accounts, const ULONG numElements, ULONG *numElementsRet)
MLPIRESULT mlpiApiUserAccountControlLoadAccounts(const MLPIHANDLE connection, const WCHAR16 *path)
The connection is protected against closing by an other connection completely.
MLPIRESULT mlpiApiDisconnect(MLPIHANDLE *connection)
This function disconnects the user application from the target.
static const WCHAR16 MLPI_LOCALHOST[]
String for local host connection when client application and target are on the same device...
wchar_t WCHAR16
UTF16 string.
MLPIRESULT mlpiApiSetNameOfConnection(const MLPIHANDLE connection, const WCHAR16 *name)
Using this function, you can assign a short descriptive name to your connection. It is not necessary ...
MLPIRESULT mlpiApiTestConnection(const MLPIHANDLE connection, const ULONG payload, const ULONG numMeasurements, MlpiConnectionInfo *info)
This function performs a benchmark on the MLPI communication mechanism. Use it to measure the duratio...
MLPIRESULT mlpiApiSetDefaultTimeout(const ULONG timeout)
This function sets the default timeout for remote procedure calls done by the API. The timeout is used for connecting, sending and receiving data. During the debugging of your application, you might want to set this value to MLPI_INFINITE.
struct MlpiConnectionInfo MlpiConnectionInfo
This structure is used by the function mlpiApiTestConnection to return the results of the timing meas...
The connection is not protected and can be closed by an other connection.
static const WCHAR16 MLPI_ACCOUNT_EMPTY_NAME[]
Surrogate string of account with empty name defined in account manifest 'accounts.xml'.
#define MLPI_API_CONNECTION_USER_LEN
Length of login user name of connection.
#define MLPI_API_CONNECTION_NAME_LEN
Length of user-defined name of connection.
MLPIRESULT mlpiApiGetAccountPermissions(const MLPIHANDLE connection, const WCHAR16 *account, WCHAR16 *permissions, const ULONG numElements, ULONG *numElementsRet)
This function provides the reading of the permissions of an account based on account manifest 'accoun...
struct MlpiDateAndTime MlpiDateAndTime
This structure defines the broken date and time information.
#define MLPI_API_LIBRARY_NAME_LEN
Length of library name.
MLPIRESULT mlpiApiGetOwnPermissions(const MLPIHANDLE connection, WCHAR16 *permissions, const ULONG numElements, ULONG *numElementsRet)
This function provides the reading of own permissions based on account manifest 'accounts.xml'.
MLPIRESULT mlpiApiDelay(const MLPIHANDLE connection, const ULONG delayMilliseconds)
This function does a simple delay on the server side. All this function performs is a blocking delay ...
MLPIRESULT mlpiApiNotifyAlive(const MLPIHANDLE connection)
This function notifies the MLPI server that the client is still alive. You may need this function if ...
MLPIRESULT mlpiApiCloseConnectionsByUri(const MLPIHANDLE connection, const WCHAR16 *uri)
This function closes one or multiple connections selected by a combination of the uniform resource id...
MLPIRESULT mlpiApiCloseConnectionByUid(const MLPIHANDLE connection, const ULLONG uid)
This function closes a connection selected by the unique identifier (uid) of a connection. You can determine the uid by using the function mlpiApiGetOwnConnectionDescription.
MLPIRESULT mlpiApiGetLibrarySupport(const MLPIHANDLE connection, MlpiLibrary *library, const ULONG numElements, ULONG *numElementsRet)
This function provides names and IDs of supported libraries.
unsigned long ULONG
4 byte unsigned integer
MlpiApiProtection
This enumeration defines the protection levels of a connection.
MLPIRESULT mlpiApiGetDefaultTimeout(ULONG *timeout)
This function reads the default timeout for remote procedure calls done by the API. This might not be the value that is set for a currently active connection.
double DOUBLE
8 byte floating point
MLPIRESULT mlpiApiCloseConnectionsByUser(const MLPIHANDLE connection, const WCHAR16 *user)
This function closes one or multiple connections selected by the user.
unsigned long MLPIHANDLE
common MLPI-API handle value
The connection is protected against closing by an other connection if the connection watchdog is acti...
MLPIRESULT mlpiApiUserAccountControlUnloadAccounts(const MLPIHANDLE connection, const WCHAR16 *path)
struct MlpiConnectionDescription MlpiConnectionDescription
This structure is used by the functions mlpiApiGetOwnConnectionDescription and mlpiApiGetAllConnectio...
MLPIRESULT mlpiApiGetOwnConnectionDescription(const MLPIHANDLE connection, MlpiConnectionDescription *description)
This function will return information about the own connection.