#include "legato.h"
Go to the source code of this file.
Typedefs | |
typedef struct le_cellnet_RequestObj * | le_cellnet_RequestObjRef_t |
typedef struct le_cellnet_StateHandler * | le_cellnet_StateHandlerRef_t |
typedef void(* | le_cellnet_StateHandlerFunc_t )(le_cellnet_State_t state, void *contextPtr) |
Enumerations | |
enum | le_cellnet_State_t { LE_CELLNET_RADIO_OFF, LE_CELLNET_REG_EMERGENCY, LE_CELLNET_REG_HOME, LE_CELLNET_REG_ROAMING, LE_CELLNET_REG_UNKNOWN } |
Functions | |
void | le_cellnet_StartClient (const char *serviceInstanceName) |
void | le_cellnet_StopClient (void) |
le_cellnet_StateHandlerRef_t | le_cellnet_AddStateHandler (le_cellnet_StateHandlerFunc_t handlerPtr, void *contextPtr) |
void | le_cellnet_RemoveStateHandler (le_cellnet_StateHandlerRef_t addHandlerRef) |
le_cellnet_RequestObjRef_t | le_cellnet_Request (void) |
void | le_cellnet_Release (le_cellnet_RequestObjRef_t cellNetRef) |
Legato Cellular Network Service include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
typedef struct le_cellnet_RequestObj* le_cellnet_RequestObjRef_t |
Reference returned by Request function and used by Release function
typedef void(* le_cellnet_StateHandlerFunc_t)(le_cellnet_State_t state, void *contextPtr) |
Handler for network state changes
state | The cellular network state |
contextPtr |
typedef struct le_cellnet_StateHandler* le_cellnet_StateHandlerRef_t |
Reference type for le_cellnet_StateHandler handler ADD/REMOVE functions
enum le_cellnet_State_t |
le_cellnet_StateHandlerRef_t le_cellnet_AddStateHandler | ( | le_cellnet_StateHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
le_cellnet_StateHandler handler ADD function
[in] | handlerPtr | |
[in] | contextPtr |
void le_cellnet_Release | ( | le_cellnet_RequestObjRef_t | cellNetRef | ) |
Release a cellular network
[in] | cellNetRef | Reference to a cellular network request. |
void le_cellnet_RemoveStateHandler | ( | le_cellnet_StateHandlerRef_t | addHandlerRef | ) |
le_cellnet_StateHandler handler REMOVE function
[in] | addHandlerRef |
le_cellnet_RequestObjRef_t le_cellnet_Request | ( | void | ) |
Request a cellular network
void le_cellnet_StartClient | ( | const char * | serviceInstanceName | ) |
Start the service for the client main thread
[in] | serviceInstanceName |
void le_cellnet_StopClient | ( | void | ) |
Stop the service for the current client thread