Blame profiles/audio/transport.h

Packit 34410b
/*
Packit 34410b
 *
Packit 34410b
 *  BlueZ - Bluetooth protocol stack for Linux
Packit 34410b
 *
Packit 34410b
 *  Copyright (C) 2006-2007  Nokia Corporation
Packit 34410b
 *  Copyright (C) 2004-2009  Marcel Holtmann <marcel@holtmann.org>
Packit 34410b
 *
Packit 34410b
 *
Packit 34410b
 *  This program is free software; you can redistribute it and/or modify
Packit 34410b
 *  it under the terms of the GNU General Public License as published by
Packit 34410b
 *  the Free Software Foundation; either version 2 of the License, or
Packit 34410b
 *  (at your option) any later version.
Packit 34410b
 *
Packit 34410b
 *  This program is distributed in the hope that it will be useful,
Packit 34410b
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 34410b
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 34410b
 *  GNU General Public License for more details.
Packit 34410b
 *
Packit 34410b
 *  You should have received a copy of the GNU General Public License
Packit 34410b
 *  along with this program; if not, write to the Free Software
Packit 34410b
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 34410b
 *
Packit 34410b
 */
Packit 34410b
Packit 34410b
struct media_transport;
Packit 34410b
Packit 34410b
struct media_transport *media_transport_create(struct btd_device *device,
Packit 34410b
						const char *remote_endpoint,
Packit 34410b
						uint8_t *configuration,
Packit 34410b
						size_t size, void *data);
Packit 34410b
Packit 34410b
void media_transport_destroy(struct media_transport *transport);
Packit 34410b
const char *media_transport_get_path(struct media_transport *transport);
Packit 34410b
struct btd_device *media_transport_get_dev(struct media_transport *transport);
Packit 34410b
uint16_t media_transport_get_volume(struct media_transport *transport);
Packit 34410b
void media_transport_update_delay(struct media_transport *transport,
Packit 34410b
							uint16_t delay);
Packit 34410b
void media_transport_update_volume(struct media_transport *transport,
Packit 34410b
								uint8_t volume);
Packit 34410b
void transport_get_properties(struct media_transport *transport,
Packit 34410b
							DBusMessageIter *iter);
Packit 34410b
Packit 34410b
uint8_t media_transport_get_device_volume(struct btd_device *dev);
Packit 34410b
void media_transport_update_device_volume(struct btd_device *dev,
Packit 34410b
								uint8_t volume);