Blob: asha.h

Blob id: 9ffd9d307d7ca6be5fff1f958499f7fd3629a714

Size: 1.1 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2024  Asymptotic Inc.
 *
 *  Author: Arun Raghavan <arun@asymptotic.io>
 *
 *
 */

#include <stdbool.h>
#include <stdint.h>

#include "src/shared/asha.h"

struct bt_asha_device;

unsigned int bt_asha_device_start(struct bt_asha_device *asha_dev,
					bt_asha_cb_t cb, void *user_data);
unsigned int bt_asha_device_stop(struct bt_asha_device *asha_dev);

void bt_asha_device_state_reset(struct bt_asha_device *asha_dev);
unsigned int bt_asha_device_device_get_resume_id(
					struct bt_asha_device *asha_dev);

uint16_t bt_asha_device_get_render_delay(struct bt_asha_device *asha_dev);
enum bt_asha_state_t bt_asha_device_get_state(
					struct bt_asha_device *asha_dev);

int bt_asha_device_get_fd(struct bt_asha_device *asha_dev);
uint16_t bt_asha_device_get_omtu(struct bt_asha_device *asha_dev);
uint16_t bt_asha_device_get_imtu(struct bt_asha_device *asha_dev);

int8_t bt_asha_device_get_volume(struct bt_asha_device *asha_dev);
bool bt_asha_device_set_volume(struct bt_asha_device *asha_dev, int8_t volume);