diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2013-01-16 10:31:29 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-01-16 13:43:06 -0600 |
commit | 2b7d96a22388b93d762a27e10f0bf5679836308d (patch) | |
tree | 808a62326a959b006435f0ccffe5f878d5aa2bda | |
parent | 0973479c294386dc33b981b194f7883237196bd0 (diff) | |
download | ofono-2b7d96a22388b93d762a27e10f0bf5679836308d.tar.bz2 |
hfp_hf: Add initial file for external HFP
This patch adds the initial file to support external HFP profile and
BlueZ 5. "hfp_hf_bluez5" plugin will implement an external Bluetooth
profile compatible with BlueZ 5, and "hfp_hf_bluez4" plugin will keep
the compatibility with BlueZ 4.
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 42 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 3c4b588b..072b3860 100644 --- a/Makefile.am +++ b/Makefile.am @@ -436,6 +436,9 @@ builtin_libadd += @BLUEZ_LIBS@ else builtin_modules += bluez5 builtin_sources += plugins/bluez5.c + +builtin_modules += hfp_bluez5 +builtin_sources += plugins/hfp_hf_bluez5.c endif endif endif diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c new file mode 100644 index 00000000..779f05da --- /dev/null +++ b/plugins/hfp_hf_bluez5.c @@ -0,0 +1,42 @@ +/* + * + * oFono - Open Source Telephony + * + * Copyright (C) 2013 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * 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 + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <glib.h> + +#define OFONO_API_SUBJECT_TO_CHANGE +#include <ofono/plugin.h> +#include <ofono/log.h> + +static int hfp_init(void) +{ + return 0; +} + +static void hfp_exit(void) +{ +} + +OFONO_PLUGIN_DEFINE(hfp_bluez5, "External Hands-Free Profile Plugin", VERSION, + OFONO_PLUGIN_PRIORITY_DEFAULT, hfp_init, hfp_exit) |