#include <Bluetooth.h>
Definition at line 35 of file Bluetooth.h.
Static Public Member Functions | |
static char * | _batostr (const bdaddr_t *ba, char *str, size_t strsize=18) |
static bdaddr_t * | strtoba (const char *str, bdaddr_t *addr) |
static void | baswap (bdaddr_t *dst, const bdaddr_t *src) |
static int | hci_devid (const char *hcidev, const char *log=NULL) |
System call wrappers (for logging). | |
static int | hci_inquiry (int dev_id, int len, int nrsp, const uint8_t *lap, inquiry_info **ii, long flags, const char *log=NULL) |
System call wrappers (for logging). | |
static int | hci_open_dev (int dev_id, const char *log=NULL) |
System call wrappers (for logging). | |
static int | hci_close_dev (int dd, const char *log=NULL) |
System call wrappers (for logging). | |
static int | hci_read_remote_name (int dd, const bdaddr_t *bdaddr, int len, char *name, int to, const char *log=NULL) |
System call wrappers (for logging). | |
static void | hci_get_bdaddr (bdaddr_t *bdaddr, const char *log=NULL) |
System call wrappers (for logging). | |
static int | hci_dev_up (int dd, const char *hcidev, const char *log=NULL) |
System call wrappers (for logging). |
int oasys::Bluetooth::hci_devid | ( | const char * | hcidev, | |
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 35 of file Bluetooth.cc.
References oasys::LOG_DEBUG, and oasys::logf().
int oasys::Bluetooth::hci_inquiry | ( | int | dev_id, | |
int | len, | |||
int | nrsp, | |||
const uint8_t * | lap, | |||
inquiry_info ** | ii, | |||
long | flags, | |||
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 46 of file Bluetooth.cc.
References oasys::LOG_DEBUG, and oasys::logf().
Referenced by oasys::BluetoothInquiry::inquire().
int oasys::Bluetooth::hci_open_dev | ( | int | dev_id, | |
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 60 of file Bluetooth.cc.
References fd, oasys::LOG_DEBUG, and oasys::logf().
int oasys::Bluetooth::hci_close_dev | ( | int | dd, | |
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 71 of file Bluetooth.cc.
References oasys::LOG_DEBUG, and oasys::logf().
int oasys::Bluetooth::hci_read_remote_name | ( | int | dd, | |
const bdaddr_t * | bdaddr, | |||
int | len, | |||
char * | name, | |||
int | to, | |||
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 82 of file Bluetooth.cc.
References baswap(), bd2str, oasys::LOG_DEBUG, and oasys::logf().
void oasys::Bluetooth::hci_get_bdaddr | ( | bdaddr_t * | bdaddr, | |
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 98 of file Bluetooth.cc.
References fd, oasys::LOG_DEBUG, oasys::LOG_ERR, and oasys::logf().
Referenced by dtn::BluetoothAnnounce::BluetoothAnnounce(), dtn::BluetoothDiscovery::BluetoothDiscovery(), oasys::BluetoothServiceDiscoveryClient::BluetoothServiceDiscoveryClient(), oasys::BluetoothServiceRegistration::BluetoothServiceRegistration(), dtn::BluetoothConvergenceLayer::interface_up(), and dtn::BluetoothConvergenceLayer::parse_link_params().
int oasys::Bluetooth::hci_dev_up | ( | int | dd, | |
const char * | hcidev, | |||
const char * | log = NULL | |||
) | [static] |
System call wrappers (for logging).
Definition at line 132 of file Bluetooth.cc.
References errno, oasys::LOG_ERR, and oasys::logf().
char * oasys::Bluetooth::_batostr | ( | const bdaddr_t * | ba, | |
char * | str, | |||
size_t | strsize = 18 | |||
) | [static] |
Definition at line 155 of file Bluetooth.cc.
References snprintf().
Referenced by oasys::Batostr::Batostr().
bdaddr_t * oasys::Bluetooth::strtoba | ( | const char * | str, | |
bdaddr_t * | addr | |||
) | [static] |
Definition at line 171 of file Bluetooth.cc.
References baswap().
Referenced by dtn::BluetoothAnnounce::handle_neighbor_discovered(), dtn::BluetoothConvergenceLayer::parse_nexthop(), and oasys::BdAddrOpt::set().
void oasys::Bluetooth::baswap | ( | bdaddr_t * | dst, | |
const bdaddr_t * | src | |||
) | [static] |