navit  0.5.3-trunk
bluetooth.c File Reference
#include <config.h>
#include <string.h>
#include <glib.h>
#include <math.h>
#include <errno.h>
#include <sys/time.h>
#include <PDL.h>
#include "SDL.h"
#include "debug.h"
#include "callback.h"
#include "event.h"
#include "cJSON.h"
#include "vehicle_webos.h"
#include "bluetooth.h"

Functions

static void vehicle_webos_spp_init_read (struct vehicle_priv *priv, unsigned int length)
 
static void mlPDL_ServiceCall_callback (struct callback_list *cbl, char *service, char *parameters)
 
static void mlPDL_ServiceCall (const char *service, const char *parameters)
 
static void mlPDL_ServiceCallWithCallback_callback (struct callback_list *cbl, char *service, char *parameters, PDL_ServiceCallbackFunc callback, void *user, PDL_bool removeAfterResponse)
 
static void mlPDL_ServiceCallWithCallback (const char *service, const char *parameters, PDL_ServiceCallbackFunc callback, void *user, PDL_bool removeAfterResponse)
 
static void vehicle_webos_init_pdl_locationtracking_callback (struct vehicle_priv *priv, struct callback_list *cbl, int param)
 
static void vehicle_webos_init_pdl_locationtracking (struct vehicle_priv *priv, int param)
 
static int vehicle_webos_parse_nmea (struct vehicle_priv *priv, char *buffer)
 
static void vehicle_webos_spp_handle_read (PDL_ServiceParameters *params, void *user)
 
static void vehicle_webos_spp_handle_open (PDL_ServiceParameters *params, void *user)
 
static void vehicle_webos_spp_notify (PDL_ServiceParameters *params, void *user)
 
static void vehicle_webos_init_bt_gps (struct vehicle_priv *priv, char *addr)
 
static void vehicle_webos_bt_gap_callback (PDL_ServiceParameters *params, void *param)
 
int vehicle_webos_bt_open (struct vehicle_priv *priv)
 
void vehicle_webos_bt_close (struct vehicle_priv *priv)
 

Variables

static int buffer_size = 128
 

Function Documentation

◆ mlPDL_ServiceCall()

static void mlPDL_ServiceCall ( const char *  service,
const char *  parameters 
)
static

◆ mlPDL_ServiceCall_callback()

static void mlPDL_ServiceCall_callback ( struct callback_list cbl,
char *  service,
char *  parameters 
)
static

◆ mlPDL_ServiceCallWithCallback()

static void mlPDL_ServiceCallWithCallback ( const char *  service,
const char *  parameters,
PDL_ServiceCallbackFunc  callback,
void *  user,
PDL_bool  removeAfterResponse 
)
static

◆ mlPDL_ServiceCallWithCallback_callback()

static void mlPDL_ServiceCallWithCallback_callback ( struct callback_list cbl,
char *  service,
char *  parameters,
PDL_ServiceCallbackFunc  callback,
void *  user,
PDL_bool  removeAfterResponse 
)
static

◆ vehicle_webos_bt_close()

void vehicle_webos_bt_close ( struct vehicle_priv priv)

◆ vehicle_webos_bt_gap_callback()

◆ vehicle_webos_bt_open()

int vehicle_webos_bt_open ( struct vehicle_priv priv)

◆ vehicle_webos_init_bt_gps()

static void vehicle_webos_init_bt_gps ( struct vehicle_priv priv,
char *  addr 
)
static

◆ vehicle_webos_init_pdl_locationtracking()

static void vehicle_webos_init_pdl_locationtracking ( struct vehicle_priv priv,
int  param 
)
static

◆ vehicle_webos_init_pdl_locationtracking_callback()

static void vehicle_webos_init_pdl_locationtracking_callback ( struct vehicle_priv priv,
struct callback_list cbl,
int  param 
)
static

◆ vehicle_webos_parse_nmea()

◆ vehicle_webos_spp_handle_open()

static void vehicle_webos_spp_handle_open ( PDL_ServiceParameters *  params,
void *  user 
)
static

◆ vehicle_webos_spp_handle_read()

static void vehicle_webos_spp_handle_read ( PDL_ServiceParameters *  params,
void *  user 
)
static

◆ vehicle_webos_spp_init_read()

static void vehicle_webos_spp_init_read ( struct vehicle_priv priv,
unsigned int  length 
)
static

◆ vehicle_webos_spp_notify()

Variable Documentation

◆ buffer_size

int buffer_size = 128
static