All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_data_interface.h File Reference
#include "legato.h"

Go to the source code of this file.

Typedefs

typedef struct le_data_RequestObj * le_data_RequestObjRef_t
 
typedef struct
le_data_ConnectionStateHandler * 
le_data_ConnectionStateHandlerRef_t
 
typedef void(* le_data_ConnectionStateHandlerFunc_t )(const char *intfName, bool isConnected, void *contextPtr)
 

Functions

void le_data_StartClient (const char *serviceInstanceName)
 
void le_data_StopClient (void)
 
le_data_ConnectionStateHandlerRef_t le_data_AddConnectionStateHandler (le_data_ConnectionStateHandlerFunc_t handlerPtr, void *contextPtr)
 
void le_data_RemoveConnectionStateHandler (le_data_ConnectionStateHandlerRef_t addHandlerRef)
 
le_data_RequestObjRef_t le_data_Request (void)
 
void le_data_Release (le_data_RequestObjRef_t requestRef)
 

Detailed Description

Legato Data Connection Service include file.

Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.

Typedef Documentation

typedef void(* le_data_ConnectionStateHandlerFunc_t)(const char *intfName, bool isConnected, void *contextPtr)

Handler for connection state changes

Parameters
intfNameInterface name for the data connection
isConnectedState: connected or disconnected
contextPtr
typedef struct le_data_ConnectionStateHandler* le_data_ConnectionStateHandlerRef_t

Reference type for le_data_ConnectionStateHandler handler ADD/REMOVE functions

typedef struct le_data_RequestObj* le_data_RequestObjRef_t

Reference returned by Request function and used by Release function

Function Documentation

le_data_ConnectionStateHandlerRef_t le_data_AddConnectionStateHandler ( le_data_ConnectionStateHandlerFunc_t  handlerPtr,
void *  contextPtr 
)

le_data_ConnectionStateHandler handler ADD function

Parameters
[in]handlerPtr
[in]contextPtr
void le_data_Release ( le_data_RequestObjRef_t  requestRef)

Release a previously requested data connection

Parameters
[in]requestRefReference to a previously requested data connection
void le_data_RemoveConnectionStateHandler ( le_data_ConnectionStateHandlerRef_t  addHandlerRef)

le_data_ConnectionStateHandler handler REMOVE function

Parameters
[in]addHandlerRef
le_data_RequestObjRef_t le_data_Request ( void  )

Request the default data connection

Returns
  • Reference to the data connection (to be used later for releasing the connection)
  • NULL if the data connection requested could not be processed
void le_data_StartClient ( const char *  serviceInstanceName)

Start the service for the client main thread

Parameters
[in]serviceInstanceName
void le_data_StopClient ( void  )

Stop the service for the current client thread