Commit | Line | Data |
---|---|---|
cbb9e0b1 PP |
1 | /* |
2 | * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; under version 2 of the License. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License along | |
14 | * with this program; if not, write to the Free Software Foundation, Inc., | |
15 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
16 | */ | |
17 | ||
18 | #include <babeltrace/plugin/plugin-dev.h> | |
19 | ||
20 | extern int test_plugin_init_called; | |
21 | extern int test_plugin_exit_called; | |
22 | ||
23 | static enum bt_plugin_status plugin_init(struct bt_plugin *plugin) | |
24 | { | |
25 | test_plugin_init_called = 1; | |
26 | ||
27 | return BT_PLUGIN_STATUS_OK; | |
28 | } | |
29 | ||
30 | static enum bt_plugin_status plugin_exit(void) | |
31 | { | |
32 | test_plugin_exit_called = 1; | |
33 | ||
34 | return BT_PLUGIN_STATUS_OK; | |
35 | } | |
36 | ||
37 | BT_PLUGIN_NAME("test-minimal"); | |
38 | BT_PLUGIN_DESCRIPTION("Minimal Babeltrace plugin with no component classes"); | |
39 | BT_PLUGIN_AUTHOR("Janine Sutto"); | |
40 | BT_PLUGIN_LICENSE("Beerware"); | |
41 | BT_PLUGIN_INIT(plugin_init); | |
42 | BT_PLUGIN_EXIT(plugin_exit); |