APIs
[Bluetooth]


Functions

alp_status_t alp_bluetooth_check (GtkWindow *parent)
 Check if bluetooth is usable.
AlpBluetoothClassOfDeviceType alp_bluetooth_cod_from_string (char *major, char *minor, char *subminor, char **services)
 return the class-of-device from major class, minor and service class strings
alp_status_t alp_bluetooth_get_pixmap_from_cod (GtkWidget *widget, char *major, char *minor, const char *size_name, GdkPixbuf **icon)
 return the pixmap that represents the given class-of-device
alp_status_t alp_bluetooth_prepare_afh_channels (uint8_t *afh_map, uint8_t begin, uint8_t count, uint8_t state)
 prepare AFH channels map
alp_status_t alp_bluetooth_prepare_wifi_channels (uint8_t *afh_map, uint8_t wifi_channel, uint8_t state)
 prepare AFH channels map from WiFi channel
void alp_bluetooth_string_from_cod (AlpBluetoothClassOfDeviceType cod, char **major, char **minor, char **subminor, char ***services)
 return major, minor and service class strings from the class-of-device


Function Documentation

alp_status_t alp_bluetooth_check GtkWindow *  parent  ) 
 

Check if bluetooth is usable.

If bluetooth is usable returns true. If not, and if device is not in 'Flight mode', asks user if he wants to set bluetooth on.

Parameters:
[in] parent Gtk widget to be used as parent window
Returns:
ALP_BLUETOOTH_ERR_NO_ERROR - Bluetooth is usable.
ALP_BLUETOOTH_ERR_ERROR - Bluetooth is not usable.

AlpBluetoothClassOfDeviceType alp_bluetooth_cod_from_string char *  major,
char *  minor,
char *  subminor,
char **  services
 

return the class-of-device from major class, minor and service class strings

Parameters:
[in] major Major class of device string
[in] minor Minor class of device string
[in] subminor Sub-minor class of device string
[in] services Service table of string
Returns:
Class of device, -1 if failed

alp_status_t alp_bluetooth_get_pixmap_from_cod GtkWidget *  widget,
char *  major,
char *  minor,
const char *  size_name,
GdkPixbuf **  icon
 

return the pixmap that represents the given class-of-device

Parameters:
[in] widget Gtk widget
[in] major Major class of device string
[in] minor Minor class of device string
[in] size_name size name for the requested icon
[out] icon pixmap representing class of device
Returns:
ALP_BLUETOOTH_ERR_NO_ERROR - success
ALP_BLUETOOTH_ERR_PARAM_ERROR - parameter error
ALP_BLUETOOTH_ERR_ERROR - failed to get pixmap
ALP_BLUETOOTH_ERR_OUT_OF_MEMORY - out of memory

alp_status_t alp_bluetooth_prepare_afh_channels uint8_t *  afh_map,
uint8_t  begin,
uint8_t  count,
uint8_t  state
 

prepare AFH channels map

Parameters:
[in,out] afh_map AFH channels map
[in] begin first channel
[in] count number of channels
[in] state 0 for not usable, 1 for usable
Returns:
ALP_BLUETOOTH_ERR_NO_ERROR - success
ALP_BLUETOOTH_ERR_PARAM_ERROR - Parameter error

alp_status_t alp_bluetooth_prepare_wifi_channels uint8_t *  afh_map,
uint8_t  wifi_channel,
uint8_t  state
 

prepare AFH channels map from WiFi channel

Parameters:
[in,out] afh_map AFH channels map
[in] wifi_channel WiFi channel
[in] state 0 for not usable, 1 for usable
Returns:
ALP_BLUETOOTH_ERR_NO_ERROR - success
ALP_BLUETOOTH_ERR_PARAM_ERROR - Parameter error

void alp_bluetooth_string_from_cod AlpBluetoothClassOfDeviceType  cod,
char **  major,
char **  minor,
char **  subminor,
char ***  services
 

return major, minor and service class strings from the class-of-device

Parameters:
[in] cod Class of device
[out] major Major class of device string
[out] minor Minor class of device string
[out] subminor Sub-minor class of device string
[out] services Service table of string


Generated on Wed Jul 30 07:06:42 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.