1 /* 2 * 3 * BlueZ - Bluetooth protocol stack for Linux 4 * 5 * Copyright (C) 2006-2007 Nokia Corporation 6 * Copyright (C) 2004-2008 Marcel Holtmann <marcel (at) holtmann.org> 7 * 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library 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 GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 * 23 */ 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 typedef void* a2dpData; 30 31 int a2dp_init(int rate, int channels, a2dpData* dataPtr); 32 void a2dp_set_sink(a2dpData data, const char* address); 33 int a2dp_write(a2dpData data, const void* buffer, int count); 34 int a2dp_stop(a2dpData data); 35 void a2dp_cleanup(a2dpData data); 36 37 #ifdef __cplusplus 38 } 39 #endif 40