• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
25 struct media_endpoint;
26 
27 typedef void (*media_endpoint_cb_t) (struct media_endpoint *endpoint,
28 					void *ret, int size, void *user_data);
29 
30 int media_register(DBusConnection *conn, const char *path, const bdaddr_t *src);
31 void media_unregister(const char *path);
32 
33 const char *media_endpoint_get_sender(struct media_endpoint *endpoint);
34 
35 size_t media_endpoint_get_capabilities(struct media_endpoint *endpoint,
36 					uint8_t **capabilities);
37 gboolean 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);
42 gboolean 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);
47 void media_endpoint_clear_configuration(struct media_endpoint *endpoint);
48 void media_endpoint_release(struct media_endpoint *endpoint);
49 
50 struct a2dp_sep *media_endpoint_get_sep(struct media_endpoint *endpoint);
51 const char *media_endpoint_get_uuid(struct media_endpoint *endpoint);
52 uint8_t media_endpoint_get_codec(struct media_endpoint *endpoint);
53 struct media_transport *media_endpoint_get_transport(
54 					struct media_endpoint *endpoint);
55