Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
#include "taf_diagSecurity_server.h"
#include "taf_diagSecurity_messages.h"
#include "taf_diagSecurity_service.h"
Data Structures | |
struct | _ServerData_t |
Macros | |
#define | HIGH_SERVER_DATA_COUNT 3 |
#define | _LOCK LE_ASSERT(pthread_mutex_lock(&_Mutex) == 0); |
#define | _UNLOCK LE_ASSERT(pthread_mutex_unlock(&_Mutex) == 0); |
#define | TRACE(...) |
#define | IS_TRACE_ENABLED 0 |
Typedefs | |
typedef void(* | RemoveHandlerFunc_t) (void *handlerRef) |
Variables | |
static le_mem_PoolRef_t | _ServerDataPool |
static le_ref_MapRef_t | _HandlerRefMap |
#define HIGH_SERVER_DATA_COUNT 3 |
Expected number of simultaneous server data objects.
#define _LOCK LE_ASSERT(pthread_mutex_lock(&_Mutex) == 0); |
#define _UNLOCK LE_ASSERT(pthread_mutex_unlock(&_Mutex) == 0); |
#define TRACE | ( | ... | ) |
Trace reference used for controlling tracing in this module.
#define IS_TRACE_ENABLED 0 |
typedef void(* RemoveHandlerFunc_t) (void *handlerRef) |
Type definition for generic function to remove a handler, given the handler ref.
LE_MEM_DEFINE_STATIC_POOL | ( | taf_diagSecurity_ServerData | , |
HIGH_SERVER_DATA_COUNT | , | ||
sizeof(_ServerData_t) | |||
) |
Static pool for server data objects
LE_REF_DEFINE_STATIC_MAP | ( | taf_diagSecurity_ServerHandlers | , |
LE_MEM_BLOCKS(taf_diagSecurity_ServerCmd, HIGH_SERVER_DATA_COUNT) | |||
) |
Static safe reference map for use with Add/Remove handler references
__attribute__ | ( | (unused) | ) |
[in] Not used
[in] Reference to the message.
Mutex and associated macros for use with the above HandlerRefMap.
Unused attribute is needed because this variable may not always get used. Per-server data:
Cleanup client data if the client is no longer connected
Send the message to the client (queued version)
This is a wrapper around le_msg_Send() with an extra parameter so that it can be used with le_event_QueueFunctionToThread().
Send the message to the client.
le_msg_ServiceRef_t taf_diagSecurity_GetServiceRef | ( | void | ) |
Get the server service reference
le_msg_SessionRef_t taf_diagSecurity_GetClientSessionRef | ( | void | ) |
Get the client session reference for the current message
void taf_diagSecurity_AdvertiseService | ( | void | ) |
Initialize the server and advertise the service.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The memory pool for server data objects
|
static |
Safe Reference Map for use with Add/Remove handler references