1/* 2 * 3 * BlueZ - Bluetooth protocol stack for Linux 4 * 5 * Copyright (C) 2006-2007 Nokia Corporation 6 * Copyright (C) 2004-2009 Marcel Holtmann <marcel@holtmann.org> 7 * 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 * 23 */ 24 25struct media_endpoint; 26 27typedef void (*media_endpoint_cb_t) (struct media_endpoint *endpoint, 28 void *ret, int size, void *user_data); 29 30int media_register(DBusConnection *conn, const char *path, const bdaddr_t *src); 31void media_unregister(const char *path); 32 33const char *media_endpoint_get_sender(struct media_endpoint *endpoint); 34 35size_t media_endpoint_get_capabilities(struct media_endpoint *endpoint, 36 uint8_t **capabilities); 37gboolean media_endpoint_set_configuration(struct media_endpoint *endpoint, 38 struct audio_device *device, 39 uint8_t *configuration, size_t size, 40 media_endpoint_cb_t cb, 41 void *user_data); 42gboolean media_endpoint_select_configuration(struct media_endpoint *endpoint, 43 uint8_t *capabilities, 44 size_t length, 45 media_endpoint_cb_t cb, 46 void *user_data); 47void media_endpoint_clear_configuration(struct media_endpoint *endpoint); 48void media_endpoint_release(struct media_endpoint *endpoint); 49 50struct a2dp_sep *media_endpoint_get_sep(struct media_endpoint *endpoint); 51const char *media_endpoint_get_uuid(struct media_endpoint *endpoint); 52uint8_t media_endpoint_get_codec(struct media_endpoint *endpoint); 53struct media_transport *media_endpoint_get_transport( 54 struct media_endpoint *endpoint); 55