/* * Copyright 2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef _CONNECTION_INTERFACE_H #define _CONNECTION_INTERFACE_H #include #include #include #include extern DoublyLinkedList sConnectionList; HciConnection* ConnectionByHandle(uint16 handle, hci_id hid); HciConnection* ConnectionByDestination(const bdaddr_t& destination, hci_id hid); HciConnection* AddConnection(uint16 handle, int type, const bdaddr_t& dst, hci_id hid); status_t RemoveConnection(const bdaddr_t& destination, hci_id hid); status_t RemoveConnection(uint16 handle, hci_id hid); hci_id RouteConnection(const bdaddr_t& destination); void SetAclBuffer(HciConnection* conn, net_buffer* nbuf); void SetAclExpectedSize(HciConnection* conn, size_t size); void AclPutting(HciConnection* conn, size_t size); bool AclComplete(HciConnection* conn); bool AclOverFlowed(HciConnection* conn); #endif // _CONNECTION_INTERFACE_H