Move to kernel style SPDX license identifiers
[babeltrace.git] / tests / lib / test-plugin-plugins / minimal.c
CommitLineData
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 11static 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 17static void plugin_finalize(void)
cbb9e0b1 18{
a71c9a60 19 g_setenv("BT_TEST_PLUGIN_FINALIZE_CALLED", "1", 1);
cbb9e0b1
PP
20}
21
df5b5d01 22BT_PLUGIN_MODULE();
6ba0b073 23BT_PLUGIN(test_minimal);
cbb9e0b1
PP
24BT_PLUGIN_DESCRIPTION("Minimal Babeltrace plugin with no component classes");
25BT_PLUGIN_AUTHOR("Janine Sutto");
26BT_PLUGIN_LICENSE("Beerware");
efb6feae
PP
27BT_PLUGIN_INITIALIZE_FUNC(plugin_init);
28BT_PLUGIN_FINALIZE_FUNC(plugin_finalize);
This page took 0.05881 seconds and 4 git commands to generate.