#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) |
Legato Data Connection Service include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
typedef void(* le_data_ConnectionStateHandlerFunc_t)(const char *intfName, bool isConnected, void *contextPtr) |
Handler for connection state changes
intfName | Interface name for the data connection |
isConnected | State: 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
le_data_ConnectionStateHandlerRef_t le_data_AddConnectionStateHandler | ( | le_data_ConnectionStateHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
le_data_ConnectionStateHandler handler ADD function
[in] | handlerPtr | |
[in] | contextPtr |
void le_data_Release | ( | le_data_RequestObjRef_t | requestRef | ) |
Release a previously requested data connection
[in] | requestRef | Reference to a previously requested data connection |
void le_data_RemoveConnectionStateHandler | ( | le_data_ConnectionStateHandlerRef_t | addHandlerRef | ) |
le_data_ConnectionStateHandler handler REMOVE function
[in] | addHandlerRef |
le_data_RequestObjRef_t le_data_Request | ( | void | ) |
Request the default data connection
void le_data_StartClient | ( | const char * | serviceInstanceName | ) |
Start the service for the client main thread
[in] | serviceInstanceName |
void le_data_StopClient | ( | void | ) |
Stop the service for the current client thread