From 1ad4df62d7b0ca988bc5ae62444420fc0273d53a Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 22 Jun 2007 19:47:53 +0000 Subject: Merge changes from git://git.infradead.org/users/vudentz/bluez-utils.git. --- audio/gateway.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 audio/gateway.h (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h new file mode 100644 index 00000000..137187cb --- /dev/null +++ b/audio/gateway.h @@ -0,0 +1,30 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2004-2007 Marcel Holtmann + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" + +struct gateway; + +int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); + +void gateway_exit(void); -- cgit From d42edde61115b525ac1e9fe6ba8ead1c791d12ca Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 22 Jun 2007 20:09:09 +0000 Subject: Remove wrongly committed files --- audio/gateway.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 audio/gateway.h (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h deleted file mode 100644 index 137187cb..00000000 --- a/audio/gateway.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * - * BlueZ - Bluetooth protocol stack for Linux - * - * Copyright (C) 2004-2007 Marcel Holtmann - * - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - */ - -#define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" - -struct gateway; - -int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); - -void gateway_exit(void); -- cgit From 8636ace20adebe32149851cf068bf4b0ecb224ee Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 22 Jun 2007 20:40:17 +0000 Subject: Add audio gateway files that implements org.bluez.audio.Gateway interface. --- audio/gateway.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 audio/gateway.h (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h new file mode 100644 index 00000000..137187cb --- /dev/null +++ b/audio/gateway.h @@ -0,0 +1,30 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2004-2007 Marcel Holtmann + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" + +struct gateway; + +int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); + +void gateway_exit(void); -- cgit From 7c386bc929463c6aad12677bfe0de8238ce26220 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 18 Jul 2007 18:25:13 +0000 Subject: Fix disable_hfp and add human readable string for states. --- audio/gateway.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index 137187cb..8794ac99 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -28,3 +28,5 @@ struct gateway; int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); void gateway_exit(void); + +gboolean gateway_is_enabled(uint16_t svc); -- cgit From d013a1eaa7beebbb49c1fe0015c70ad81566d97c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 12 Aug 2007 23:58:15 +0000 Subject: Clean up mess with header files --- audio/gateway.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index 8794ac99..7fddb33c 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -21,9 +21,9 @@ * */ -#define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" +#include "device.h" -struct gateway; +#define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); -- cgit From c2833e263d6cfc4cf82f4bfdcc59640a4071aeae Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 13 Aug 2007 08:14:22 +0000 Subject: Remove ifndef protections and includes from .h files --- audio/gateway.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index 7fddb33c..572457c9 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -21,8 +21,6 @@ * */ -#include "device.h" - #define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); -- cgit From de72271829f6bfd21aa6550a2ac6d81e35b53cad Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 23 Oct 2007 17:17:47 +0000 Subject: Update copyright information --- audio/gateway.h | 1 + 1 file changed, 1 insertion(+) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index 572457c9..c21e728b 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -2,6 +2,7 @@ * * BlueZ - Bluetooth protocol stack for Linux * + * Copyright (C) 2006-2007 Nokia Corporation * Copyright (C) 2004-2007 Marcel Holtmann * * -- cgit From e823c15e43a6f924779e466d434c51157002d9ee Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 2 Feb 2008 03:37:05 +0000 Subject: Update copyright information --- audio/gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index c21e728b..a4245909 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -3,7 +3,7 @@ * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2006-2007 Nokia Corporation - * Copyright (C) 2004-2007 Marcel Holtmann + * Copyright (C) 2004-2008 Marcel Holtmann * * * This program is free software; you can redistribute it and/or modify -- cgit From 05498649453b5059c3fc317394ad21b42a62a669 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 21 Apr 2008 12:49:16 +0000 Subject: First steps towards HSP HS role and Audio.Gateway D-Bus interface support --- audio/gateway.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'audio/gateway.h') diff --git a/audio/gateway.h b/audio/gateway.h index a4245909..12e413fd 100644 --- a/audio/gateway.h +++ b/audio/gateway.h @@ -24,6 +24,9 @@ #define AUDIO_GATEWAY_INTERFACE "org.bluez.audio.Gateway" +#define DEFAULT_HSP_HS_CHANNEL 6 +#define DEFAULT_HFP_HS_CHANNEL 7 + int gateway_init(DBusConnection *conn, gboolean disable_hfp, gboolean sco_hci); void gateway_exit(void); -- cgit