summaryrefslogtreecommitdiffstats
path: root/plugins/echo.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-11 20:00:16 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-11 20:00:16 +0000
commit971ed9531285f7de6b2c7a06095a833f9cbad08a (patch)
tree86b7d2035e1a860ed8b6ff43c3d7d7576c777a6c /plugins/echo.c
parentf891d23d47274a8788ccdd738ee160f27fb0935b (diff)
Add skeleton for the example plugin
Diffstat (limited to 'plugins/echo.c')
-rw-r--r--plugins/echo.c41
1 files changed, 41 insertions, 0 deletions
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)