#include "legato.h"
Go to the source code of this file.
|
LE_SHARED bool | ifgen_taf_appMgmt_HasLocalBinding (void) |
|
LE_SHARED void | ifgen_taf_appMgmt_InitCommonData (void) |
|
LE_SHARED void | ifgen_taf_appMgmt_CleanupCommonData (le_msg_SessionRef_t _ifgen_sessionRef) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_OpenSession (le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking) |
|
LE_SHARED taf_appMgmt_AppState_t | ifgen_taf_appMgmt_GetState (le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL appName) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_GetVersion (le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL appName, char *version, size_t versionSize) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_Start (le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL appName) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_Stop (le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL appName) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_Uninstall (le_msg_SessionRef_t _ifgen_sessionRef, const char *LE_NONNULL appName) |
|
LE_SHARED taf_appMgmt_AppListRef_t | ifgen_taf_appMgmt_CreateAppList (le_msg_SessionRef_t _ifgen_sessionRef) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_DeleteAppList (le_msg_SessionRef_t _ifgen_sessionRef, taf_appMgmt_AppListRef_t appListRef) |
|
LE_SHARED taf_appMgmt_AppRef_t | ifgen_taf_appMgmt_GetFirstApp (le_msg_SessionRef_t _ifgen_sessionRef, taf_appMgmt_AppListRef_t appListRef) |
|
LE_SHARED taf_appMgmt_AppRef_t | ifgen_taf_appMgmt_GetNextApp (le_msg_SessionRef_t _ifgen_sessionRef, taf_appMgmt_AppListRef_t appListRef) |
|
LE_SHARED le_result_t | ifgen_taf_appMgmt_GetAppDetails (le_msg_SessionRef_t _ifgen_sessionRef, taf_appMgmt_AppRef_t appRef, taf_appMgmt_AppInfo_t *appInfoPtr) |
|
◆ IFGEN_TAF_APPMGMT_PROTOCOL_ID
#define IFGEN_TAF_APPMGMT_PROTOCOL_ID "347780641c4b9919bc0664fe14d9903e" |
◆ IFGEN_TAF_APPMGMT_MSG_SIZE
#define IFGEN_TAF_APPMGMT_MSG_SIZE 268 |
◆ TAF_APPMGMT_APP_NAME_BYTES
#define TAF_APPMGMT_APP_NAME_BYTES 48 |
App name length without null characters.
◆ TAF_APPMGMT_APP_VERSION_BYTES
#define TAF_APPMGMT_APP_VERSION_BYTES 101 |
App version length without null characters.
◆ TAF_APPMGMT_APP_HASH_BYTES
#define TAF_APPMGMT_APP_HASH_BYTES 101 |
App hash length without null characters.
◆ taf_appMgmt_AppListRef_t
The reference to the app list.
◆ taf_appMgmt_AppRef_t
The reference to the app.
◆ taf_appMgmt_AppState_t
App state enum.
Enumerator |
---|
TAF_APPMGMT_STATE_STOPPED | App is not running.
|
TAF_APPMGMT_STATE_STARTED | App is running.
|
◆ taf_appMgmt_AppStartMode_t
App start mode enum.
Enumerator |
---|
TAF_APPMGMT_START_MANUAL | App started manually.
|
TAF_APPMGMT_START_AUTO | App started automatically.
|
◆ ifgen_taf_appMgmt_HasLocalBinding()
LE_SHARED bool ifgen_taf_appMgmt_HasLocalBinding |
( |
void |
| ) |
|
Get if this client bound locally.
◆ ifgen_taf_appMgmt_InitCommonData()
LE_SHARED void ifgen_taf_appMgmt_InitCommonData |
( |
void |
| ) |
|
Init data that is common across all threads
◆ ifgen_taf_appMgmt_CleanupCommonData()
Cleanup the data of a session
◆ ifgen_taf_appMgmt_OpenSession()
Perform common initialization and open a session
◆ ifgen_taf_appMgmt_GetState()
Gets the application's current state.
- Returns
- TAF_APPMGMT_STATE_STOPPED – App is not running.
- TAF_APPMGMT_STATE_STARTED – App is running.
- Parameters
-
◆ ifgen_taf_appMgmt_GetVersion()
Gets the application's version.
- Returns
- LE_BAD_PARAMETER – Bad parameter(s).
- LE_NOT_FOUND – App not found.
- LE_OK – Success.
- Parameters
-
[in] | appName | App name. |
[out] | version | App version. |
[in] | versionSize | |
◆ ifgen_taf_appMgmt_Start()
Starts an app.
- Returns
- LE_DUPLICATE – App is already running.
- LE_BUSY – System is busy.
- LE_FAULT – Failure.
- LE_OK – Success.
- Note
- Installed apps are activated in a probation state when started for the first time.
- Parameters
-
◆ ifgen_taf_appMgmt_Stop()
Stops an app.
- Returns
- LE_NOT_FOUND – App not found or not currently running; see note.
- LE_OK – Success.
- Note
- Installed apps are not stopped if they are running in a Probation state.
- Parameters
-
◆ ifgen_taf_appMgmt_Uninstall()
Uninstalls an app.
- Returns
- LE_NOT_FOUND – App not found.
- LE_BUSY – System is busy.
- LE_FAULT – Failure.
- LE_OK – Success.
- Note
- Installed app is not allow to uninstall if in probation state.
- Parameters
-
◆ ifgen_taf_appMgmt_CreateAppList()
Creates an app list.
- Returns
- Non-null pointer – The reference to the app list.
- Null pointer – Internal error.
◆ ifgen_taf_appMgmt_DeleteAppList()
Deletes app list.
- Returns
- LE_BAD_PARAMETER – Bad parameters.
- LE_NOT_FOUND – Reference not found.
- LE_OK – Success.
- Parameters
-
[in] | appListRef | The reference to the app list. |
◆ ifgen_taf_appMgmt_GetFirstApp()
Gets the first app.
- Returns
- Non-null pointer – The reference to the first app.
- Null pointer – Internal error or empty list.
- Parameters
-
[in] | appListRef | The reference to the app list. |
◆ ifgen_taf_appMgmt_GetNextApp()
Gets the next app based on the current position in the list.
- Returns
- Non-null pointer – The reference to the next app.
- Null pointer – Internal error or empty list.
- Parameters
-
[in] | appListRef | The reference to the app list. |
◆ ifgen_taf_appMgmt_GetAppDetails()
Gets app information.
- Returns
- LE_BAD_PARAMETER – Bad parameters.
- LE_NOT_FOUND – Reference not found.
- LE_OK – Success.
- Note
- Get static information when creating app list.
- Parameters
-
[in] | appRef | The reference to the app. |
[out] | appInfoPtr | App information. |