#include "btio/btio.h"
#include "log.h"
+#include "backtrace.h"
#include "adapter.h"
#include "device.h"
#include "src/shared/util.h"
uint16_t attrib_db_find_avail(struct btd_adapter *adapter, bt_uuid_t *svc_uuid,
uint16_t nitems)
{
- g_assert(nitems > 0);
+ btd_assert(nitems > 0);
if (svc_uuid->type == BT_UUID16)
return find_uuid16_avail(adapter, nitems);
#include <stdio.h>
#include <stdlib.h>
-#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdbool.h>
#include "lib/sdp.h"
#include "log.h"
+#include "backtrace.h"
#include "adapter.h"
#include "device.h"
if (state == old)
return;
- assert(service->device != NULL);
- assert(service->profile != NULL);
+ btd_assert(service->device != NULL);
+ btd_assert(service->profile != NULL);
service->state = state;
service->err = err;
char addr[18];
int err;
- assert(service->state == BTD_SERVICE_STATE_UNAVAILABLE);
+ btd_assert(service->state == BTD_SERVICE_STATE_UNAVAILABLE);
err = service->profile->device_probe(service);
if (err == 0) {
void btd_service_set_user_data(struct btd_service *service, void *user_data)
{
- assert(service->state == BTD_SERVICE_STATE_UNAVAILABLE);
+ btd_assert(service->state == BTD_SERVICE_STATE_UNAVAILABLE);
service->user_data = user_data;
}