diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/Makefile.am | 12 | ||||
| -rw-r--r-- | plugins/echo.c | 41 | 
2 files changed, 53 insertions, 0 deletions
| diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 02742923..b6020d05 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -1,2 +1,14 @@ +plugindir = $(libdir)/bluetooth/plugins + +plugin_LTLIBRARIES = libecho.la + +libecho_la_SOURCES = echo.c + +AM_LDFLAGS = -module -avoid-version -export-symbols-regex bluetooth_plugin_desc + +AM_CFLAGS = @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@ + +INCLUDES = -I$(top_builddir)/common -I$(top_builddir)/hcid +  MAINTAINERCLEANFILES = Makefile.in diff --git a/plugins/echo.c b/plugins/echo.c new file mode 100644 index 00000000..4eaaddb6 --- /dev/null +++ b/plugins/echo.c @@ -0,0 +1,41 @@ +/* + * + *  BlueZ - Bluetooth protocol stack for Linux + * + *  Copyright (C) 2004-2008  Marcel Holtmann <marcel@holtmann.org> + * + * + *  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 + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <errno.h> + +#include "plugin.h" + +static int echo_init(void) +{ +	return -EIO; +} + +static void echo_exit(void) +{ +} + +BLUETOOTH_PLUGIN_DEFINE("echo", echo_init, echo_exit) | 
