projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lib: expose bt_lib_log_level symbol
[babeltrace.git]
/
cli
/
babeltrace-cfg-cli-args-default.c
diff --git
a/cli/babeltrace-cfg-cli-args-default.c
b/cli/babeltrace-cfg-cli-args-default.c
index 0617b59dcf3359683a20bd0046a7f9cb2f96ce12..ec7b4803993e4cd474dafbcbb84a65d17ac45b3f 100644
(file)
--- a/
cli/babeltrace-cfg-cli-args-default.c
+++ b/
cli/babeltrace-cfg-cli-args-default.c
@@
-21,17
+21,23
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <babeltrace/
values
.h>
+#include <babeltrace/
babeltrace
.h>
#include "babeltrace-cfg.h"
#include "babeltrace-cfg-cli-args.h"
#include "babeltrace-cfg-cli-args-default.h"
#include "babeltrace-cfg.h"
#include "babeltrace-cfg-cli-args.h"
#include "babeltrace-cfg-cli-args-default.h"
+#ifdef ENABLE_DEBUG_INFO
+# define BT_ENABLE_DEBUG_INFO 1
+#else
+# define BT_ENABLE_DEBUG_INFO 0
+#endif
+
#ifdef BT_SET_DEFAULT_IN_TREE_CONFIGURATION
struct bt_config *bt_config_cli_args_create_with_default(int argc,
const char *argv[], int *retcode)
{
#ifdef BT_SET_DEFAULT_IN_TREE_CONFIGURATION
struct bt_config *bt_config_cli_args_create_with_default(int argc,
const char *argv[], int *retcode)
{
-
struct
bt_value *initial_plugin_paths;
+ bt_value *initial_plugin_paths;
struct bt_config *cfg = NULL;
int ret;
struct bt_config *cfg = NULL;
int ret;
@@
-47,15
+53,15
@@
struct bt_config *bt_config_cli_args_create_with_default(int argc,
}
cfg = bt_config_cli_args_create(argc, argv, retcode, true, true,
}
cfg = bt_config_cli_args_create(argc, argv, retcode, true, true,
-
BT_ENABLE_DEBUG_INFO == 0,
initial_plugin_paths);
+ initial_plugin_paths);
goto end;
error:
*retcode = 1;
goto end;
error:
*retcode = 1;
- BT_
PU
T(cfg);
+ BT_
OBJECT_PUT_REF_AND_RESE
T(cfg);
end:
end:
- bt_
put
(initial_plugin_paths);
+ bt_
value_put_ref
(initial_plugin_paths);
return cfg;
}
return cfg;
}
@@
-65,7
+71,7
@@
struct bt_config *bt_config_cli_args_create_with_default(int argc,
const char *argv[], int *retcode)
{
return bt_config_cli_args_create(argc, argv, retcode, false, false,
const char *argv[], int *retcode)
{
return bt_config_cli_args_create(argc, argv, retcode, false, false,
-
BT_ENABLE_DEBUG_INFO == 0,
NULL);
+ NULL);
}
#endif /* BT_SET_DEFAULT_IN_TREE_CONFIGURATION */
}
#endif /* BT_SET_DEFAULT_IN_TREE_CONFIGURATION */
This page took
0.027712 seconds
and
4
git commands to generate.