Commit | Line | Data |
---|---|---|
cbb9e0b1 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: GPL-2.0-only |
cbb9e0b1 | 3 | * |
0235b0db | 4 | * Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com> |
cbb9e0b1 PP |
5 | */ |
6 | ||
3fadfbc0 | 7 | #include <babeltrace2/babeltrace.h> |
df5b5d01 | 8 | #include <stdlib.h> |
75332c70 | 9 | #include <glib.h> |
cbb9e0b1 | 10 | |
21a9f056 | 11 | static bt_plugin_initialize_func_status plugin_init(bt_self_plugin *plugin) |
cbb9e0b1 | 12 | { |
21a9f056 FD |
13 | g_setenv("BT_TEST_PLUGIN_INITIALIZE_CALLED", "1", 1); |
14 | return BT_PLUGIN_INITIALIZE_FUNC_STATUS_OK; | |
cbb9e0b1 PP |
15 | } |
16 | ||
a71c9a60 | 17 | static void plugin_finalize(void) |
cbb9e0b1 | 18 | { |
a71c9a60 | 19 | g_setenv("BT_TEST_PLUGIN_FINALIZE_CALLED", "1", 1); |
cbb9e0b1 PP |
20 | } |
21 | ||
df5b5d01 | 22 | BT_PLUGIN_MODULE(); |
6ba0b073 | 23 | BT_PLUGIN(test_minimal); |
cbb9e0b1 PP |
24 | BT_PLUGIN_DESCRIPTION("Minimal Babeltrace plugin with no component classes"); |
25 | BT_PLUGIN_AUTHOR("Janine Sutto"); | |
26 | BT_PLUGIN_LICENSE("Beerware"); | |
efb6feae PP |
27 | BT_PLUGIN_INITIALIZE_FUNC(plugin_init); |
28 | BT_PLUGIN_FINALIZE_FUNC(plugin_finalize); |