gllbs_distr/gllbs_hal_ips.h File Reference

Broadcom LBS API to IPS. More...

#include "gllbs_os_types.h"
#include "gllbs_types.h"
Include dependency graph for gllbs_hal_ips.h:

Classes

struct  GlLbsIpsCallbacks
 Structure for IPS HAL callbacks. More...

Typedefs

typedef LBS_CONN_ID(* GlLbsIpsReqDownloadCb )(const char *pcPath)
 Request download from IPS server.
typedef struct GlLbsIpsCallbacks GlLbsIpsCallbacks
 Structure for IPS HAL callbacks.

Functions

GLLBS_ERRORS GlLbsIpsInit (const GlLbsIpsCallbacks *cb)
 Initialize LBS interface to IPS HAL.
void GlLbsIpsData (LBS_CONN_ID conn_id, OSOCTET *data, OSUINT32 size)
 HAL direct calls to LBS.

Detailed Description

Broadcom LBS API to IPS.

Copyright (c) 2009 by Broadcom Corp. All Rights Reserved.

The information contained herein is confidential property of Broadcom. The use, copying, transfer or disclosure of such information is prohibited except by express written agreement with Broadcom.

Usage notes:

1. During main initialization "GlLbsIpsInit" function must be called to specify function which can be used by LBS core library

example:

GlLbsIpsCallbacks cb; cb.cbLbsIpsDataReq = MyIpsDataReq; GlLbsIpsInit(&cb);

NOTE !!! NOTE !!! NOTE !!! NOTE !!! NOTE !!! All LBS functions must be called from the same GPS thread !!

IPS Initialization is a synchronous process


Typedef Documentation

typedef LBS_CONN_ID(* GlLbsIpsReqDownloadCb)(const char *pcPath)

Request download from IPS server.

Parameters:
path- relative path of requested file.
Returns:
- connection ID if success, 0 - otherwise

Function Documentation

void GlLbsIpsData ( LBS_CONN_ID  conn_id,
OSOCTET *  data,
OSUINT32  size 
)

HAL direct calls to LBS.

Provide data received from IPS server to the LBS library

Parameters:
conn_id- value returned by GlLbsIpsReqDownloadCb This value used by the LBS library to identify download request
data- address of buffer
size- length of the buffer

Initialize LBS interface to IPS HAL.

Parameters:
cb- pointer to the structure for IPS HAL callbacks.
Returns:
- LBS_OK if success, error - otherwise
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines