Snapdragon® Telematics Application Framework (TelAF) Interface Specification
le_instStat_common.h File Reference
#include "legato.h"
#include "le_limit_common.h"

Go to the source code of this file.

Macros

#define IFGEN_LE_INSTSTAT_PROTOCOL_ID   "e160a983e92b4310ae8af3fbeff75a1b"
 
#define IFGEN_LE_INSTSTAT_MSG_SIZE   59
 

Typedefs

typedef struct le_instStat_AppInstallEventHandler * le_instStat_AppInstallEventHandlerRef_t
 
typedef struct le_instStat_AppUninstallEventHandler * le_instStat_AppUninstallEventHandlerRef_t
 
typedef void(* le_instStat_AppInstallHandlerFunc_t) (const char *LE_NONNULL appName, void *contextPtr)
 
typedef void(* le_instStat_AppUninstallHandlerFunc_t) (const char *LE_NONNULL appName, void *contextPtr)
 

Functions

LE_SHARED bool ifgen_le_instStat_HasLocalBinding (void)
 
LE_SHARED void ifgen_le_instStat_InitCommonData (void)
 
LE_SHARED void ifgen_le_instStat_CleanupCommonData (le_msg_SessionRef_t _ifgen_sessionRef)
 
LE_SHARED le_result_t ifgen_le_instStat_OpenSession (le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking)
 
LE_SHARED le_instStat_AppInstallEventHandlerRef_t ifgen_le_instStat_AddAppInstallEventHandler (le_msg_SessionRef_t _ifgen_sessionRef, le_instStat_AppInstallHandlerFunc_t handlerPtr, void *contextPtr)
 
LE_SHARED void ifgen_le_instStat_RemoveAppInstallEventHandler (le_msg_SessionRef_t _ifgen_sessionRef, le_instStat_AppInstallEventHandlerRef_t handlerRef)
 
LE_SHARED le_instStat_AppUninstallEventHandlerRef_t ifgen_le_instStat_AddAppUninstallEventHandler (le_msg_SessionRef_t _ifgen_sessionRef, le_instStat_AppUninstallHandlerFunc_t handlerPtr, void *contextPtr)
 
LE_SHARED void ifgen_le_instStat_RemoveAppUninstallEventHandler (le_msg_SessionRef_t _ifgen_sessionRef, le_instStat_AppUninstallEventHandlerRef_t handlerRef)
 

Macro Definition Documentation

◆ IFGEN_LE_INSTSTAT_PROTOCOL_ID

#define IFGEN_LE_INSTSTAT_PROTOCOL_ID   "e160a983e92b4310ae8af3fbeff75a1b"

◆ IFGEN_LE_INSTSTAT_MSG_SIZE

#define IFGEN_LE_INSTSTAT_MSG_SIZE   59

Typedef Documentation

◆ le_instStat_AppInstallEventHandlerRef_t

typedef struct le_instStat_AppInstallEventHandler* le_instStat_AppInstallEventHandlerRef_t

Reference type used by Add/Remove functions for EVENT 'le_instStat_AppInstallEvent'

◆ le_instStat_AppUninstallEventHandlerRef_t

typedef struct le_instStat_AppUninstallEventHandler* le_instStat_AppUninstallEventHandlerRef_t

Reference type used by Add/Remove functions for EVENT 'le_instStat_AppUninstallEvent'

◆ le_instStat_AppInstallHandlerFunc_t

typedef void(* le_instStat_AppInstallHandlerFunc_t) (const char *LE_NONNULL appName, void *contextPtr)

Handler for application install. Called when an application is installed.

◆ le_instStat_AppUninstallHandlerFunc_t

typedef void(* le_instStat_AppUninstallHandlerFunc_t) (const char *LE_NONNULL appName, void *contextPtr)

Handler for application uninstall. Called when an application is uninstalled.

Function Documentation

◆ ifgen_le_instStat_HasLocalBinding()

LE_SHARED bool ifgen_le_instStat_HasLocalBinding ( void  )

Get if this client bound locally.

◆ ifgen_le_instStat_InitCommonData()

LE_SHARED void ifgen_le_instStat_InitCommonData ( void  )

Init data that is common across all threads

◆ ifgen_le_instStat_CleanupCommonData()

LE_SHARED void ifgen_le_instStat_CleanupCommonData ( le_msg_SessionRef_t  _ifgen_sessionRef)

Cleanup the data of a session

◆ ifgen_le_instStat_OpenSession()

LE_SHARED le_result_t ifgen_le_instStat_OpenSession ( le_msg_SessionRef_t  _ifgen_sessionRef,
bool  isBlocking 
)

Perform common initialization and open a session

◆ ifgen_le_instStat_AddAppInstallEventHandler()

LE_SHARED le_instStat_AppInstallEventHandlerRef_t ifgen_le_instStat_AddAppInstallEventHandler ( le_msg_SessionRef_t  _ifgen_sessionRef,
le_instStat_AppInstallHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

Add handler function for EVENT 'le_instStat_AppInstallEvent'

This event provides a notification of when an application is installed.

Parameters
[in]handlerPtr
[in]contextPtr

◆ ifgen_le_instStat_RemoveAppInstallEventHandler()

LE_SHARED void ifgen_le_instStat_RemoveAppInstallEventHandler ( le_msg_SessionRef_t  _ifgen_sessionRef,
le_instStat_AppInstallEventHandlerRef_t  handlerRef 
)

Remove handler function for EVENT 'le_instStat_AppInstallEvent'

Parameters
[in]handlerRef

◆ ifgen_le_instStat_AddAppUninstallEventHandler()

LE_SHARED le_instStat_AppUninstallEventHandlerRef_t ifgen_le_instStat_AddAppUninstallEventHandler ( le_msg_SessionRef_t  _ifgen_sessionRef,
le_instStat_AppUninstallHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

Add handler function for EVENT 'le_instStat_AppUninstallEvent'

This event provides a notification of when an application is uninstalled.

Parameters
[in]handlerPtr
[in]contextPtr

◆ ifgen_le_instStat_RemoveAppUninstallEventHandler()

LE_SHARED void ifgen_le_instStat_RemoveAppUninstallEventHandler ( le_msg_SessionRef_t  _ifgen_sessionRef,
le_instStat_AppUninstallEventHandlerRef_t  handlerRef 
)

Remove handler function for EVENT 'le_instStat_AppUninstallEvent'

Parameters
[in]handlerRef