X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest-plugin-plugins%2Fminimal.c;h=7f9e016adf7345af4f700b7b0edcca03a758cccb;hb=15030982ca99a8930d5c13b7fdff5dcba204a551;hp=661c7528490b0966111aed9f0fef7409bcb5790c;hpb=a71c9a60f12f1d671c8a54c276d332ee86e5a697;p=babeltrace.git diff --git a/tests/lib/test-plugin-plugins/minimal.c b/tests/lib/test-plugin-plugins/minimal.c index 661c7528..7f9e016a 100644 --- a/tests/lib/test-plugin-plugins/minimal.c +++ b/tests/lib/test-plugin-plugins/minimal.c @@ -1,25 +1,15 @@ /* - * Copyright (c) 2017 Philippe Proulx + * SPDX-License-Identifier: GPL-2.0-only * - * 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. + * Copyright (C) 2017 Philippe Proulx */ #include #include #include -static bt_plugin_initialize_func_status plugin_init(bt_self_plugin *plugin) +static bt_plugin_initialize_func_status plugin_init( + bt_self_plugin *plugin __attribute__((unused))) { g_setenv("BT_TEST_PLUGIN_INITIALIZE_CALLED", "1", 1); return BT_PLUGIN_INITIALIZE_FUNC_STATUS_OK; @@ -35,5 +25,5 @@ BT_PLUGIN(test_minimal); BT_PLUGIN_DESCRIPTION("Minimal Babeltrace plugin with no component classes"); BT_PLUGIN_AUTHOR("Janine Sutto"); BT_PLUGIN_LICENSE("Beerware"); -BT_PLUGIN_INITIALIZE(plugin_init); -BT_PLUGIN_FINALIZE(plugin_finalize); +BT_PLUGIN_INITIALIZE_FUNC(plugin_init); +BT_PLUGIN_FINALIZE_FUNC(plugin_finalize);