X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fcli%2Fbabeltrace2-cfg.h;h=79e1161064c44bc86ddc7b5a7323a2a3b2fe9a5f;hb=e7f0f07bea73c3fdf14bbc919bfd44bff3eb85e1;hp=a5cc7fcfae17a9662deb0f617038f7b3e5ce7846;hpb=578e048b5debf169e286e5b5cc747b5d6c16886d;p=babeltrace.git diff --git a/src/cli/babeltrace2-cfg.h b/src/cli/babeltrace2-cfg.h index a5cc7fcf..79e11610 100644 --- a/src/cli/babeltrace2-cfg.h +++ b/src/cli/babeltrace2-cfg.h @@ -1,37 +1,19 @@ -#ifndef CLI_BABELTRACE_CFG_H -#define CLI_BABELTRACE_CFG_H - /* - * Babeltrace trace converter - CLI tool's configuration + * SPDX-License-Identifier: MIT * * Copyright 2016-2017 Philippe Proulx * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Babeltrace trace converter - CLI tool's configuration */ +#ifndef CLI_BABELTRACE_CFG_H +#define CLI_BABELTRACE_CFG_H + #include #include #include -#include #include "lib/object.h" #include "compat/compiler.h" -#include #include enum bt_config_command { @@ -50,6 +32,7 @@ struct bt_config_component { GString *comp_cls_name; bt_value *params; GString *instance_name; + int log_level; }; struct bt_config_connection { @@ -62,14 +45,12 @@ struct bt_config_connection { struct bt_config { bt_object base; - bool debug; - bool verbose; bt_value *plugin_paths; bool omit_system_plugin_path; bool omit_home_plugin_path; bool command_needs_plugins; const char *command_name; - char log_level; + int log_level; enum bt_config_command command; union { /* BT_CONFIG_COMMAND_RUN */