******************************************************************************/
#include <assert.h>
+#include <string.h>
#include "btcore/include/bdaddr.h"
#include "btcore/include/device_class.h"
#include "btcore/include/property.h"
#include <stdint.h>
#include <errno.h>
#include <linux/uhid.h>
+#include <unistd.h>
#include "btif_hh.h"
#include "bta_api.h"
#include "bta_hh_api.h"
static inline void lock_slot(pthread_mutex_t* mutex)
{
- if(mutex->value)
+ // TODO: Commented out since definition of pthread_mutext_t changed to remove value.
+ // Check is for a programming error - however, should re-implement if there's a
+ // solution.
+ //if(mutex->value)
pthread_mutex_lock(mutex);
- else LOG_ERROR("mutex: %p is not initialized", mutex);
+ //else LOG_ERROR("mutex: %p is not initialized", mutex);
}
static inline void unlock_slot(pthread_mutex_t* mutex)
{
- if(mutex->value)
+ // TODO: Commented out since definition of pthread_mutext_t changed to remove value.
+ // Check is for a programming error - however, should re-implement if there's a
+ // solution.
+ //if(mutex->value)
pthread_mutex_unlock(mutex);
- else LOG_ERROR("mutex: %p is not initialized", mutex);
+ //else LOG_ERROR("mutex: %p is not initialized", mutex);
}
void dump_bin(const char* title, const char* data, int size);
#include <errno.h>
#include <hardware/bluetooth.h>
#include <hardware/bt_sock.h>
+#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#define LOG_TAG "bt_btif_sock_sco"
#include <assert.h>
+#include <errno.h>
#include <hardware/bluetooth.h>
#include <hardware/bt_sock.h>
+#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
******************************************************************************/
#include <assert.h>
+#include <stdlib.h>
#include "osi/include/allocator.h"
#include "gki_int.h"
#define LOG_TAG "bt_gki"
#include <assert.h>
+#include <errno.h>
#include <pthread.h>
+#include <string.h>
#include <time.h>
#include "btcore/include/module.h"
#define LOG_TAG "bt_snoop"
+#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#define LOG_TAG "bt_hci_h4"
#include <assert.h>
+#include <errno.h>
+#include <string.h>
#include "osi/include/eager_reader.h"
#include "hci_hal.h"
#define LOG_TAG "bt_hci_mct"
#include <assert.h>
+#include <errno.h>
+#include <string.h>
#include "bt_vendor_lib.h"
#include "osi/include/eager_reader.h"
#include <assert.h>
#include <errno.h>
+#include <string.h>
#include "osi/include/allocator.h"
#include "bt_types.h"
#include <assert.h>
#include <cutils/properties.h>
+#include <string.h>
#include "buffer_allocator.h"
#include "btsnoop.h"
#define LOG_TAG "bt_hci_packet_fragmenter"
#include <assert.h>
+#include <string.h>
#include "buffer_allocator.h"
#include "device/include/controller.h"
#include <assert.h>
#include <pthread.h>
#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
#include "osi/include/allocation_tracker.h"
#include "osi/include/allocator.h"
******************************************************************************/
#include <stdlib.h>
+#include <string.h>
#include "osi/include/allocator.h"
#include "osi/include/allocation_tracker.h"
#define LOG_TAG "bt_osi_array"
#include <assert.h>
+#include <stdlib.h>
+#include <string.h>
#include "osi/include/allocator.h"
#include "osi/include/array.h"
#include <assert.h>
#include <errno.h>
#include <stddef.h>
+#include <string.h>
#include <sys/eventfd.h>
#include "osi/include/allocator.h"
#include "osi/include/semaphore.h"
#include "osi/include/reactor.h"
-struct fixed_queue_t {
+typedef struct fixed_queue_t {
list_t *list;
semaphore_t *enqueue_sem;
semaphore_t *dequeue_sem;
void *data;
};
-struct list_t {
+typedef struct list_t {
list_node_t *head;
list_node_t *tail;
size_t length;
#include <errno.h>
#include <pthread.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#define LOG_TAG "bt_l2cap_client"
#include <assert.h>
+#include <string.h>
#include "btcore/include/bdaddr.h"
#include "gki/common/gki.h"