Add bt_plugin test
[babeltrace.git] / tests / lib / test-plugin-plugins / invalid.c
diff --git a/tests/lib/test-plugin-plugins/invalid.c b/tests/lib/test-plugin-plugins/invalid.c
new file mode 100644 (file)
index 0000000..e57eb68
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
+ *
+ * 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; under version 2 of the License.
+ *
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <babeltrace/plugin/plugin-dev.h>
+
+static enum bt_plugin_status plugin_init(struct bt_plugin *plugin)
+{
+       return BT_PLUGIN_STATUS_OK;
+}
+
+static enum bt_plugin_status plugin_exit(void)
+{
+       return BT_PLUGIN_STATUS_OK;
+}
+
+BT_PLUGIN_DESCRIPTION("Invalid plugin because the name is missing");
+BT_PLUGIN_AUTHOR("Janine Sutto");
+BT_PLUGIN_LICENSE("Beerware");
+BT_PLUGIN_INIT(plugin_init);
+BT_PLUGIN_EXIT(plugin_exit);
This page took 0.024083 seconds and 4 git commands to generate.