* 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"
+#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)
{
- struct bt_value *initial_plugin_paths;
+ bt_value *initial_plugin_paths;
struct bt_config *cfg = NULL;
int ret;
}
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;
- BT_PUT(cfg);
+ BT_OBJECT_PUT_REF_AND_RESET(cfg);
end:
- bt_put(initial_plugin_paths);
+ bt_value_put_ref(initial_plugin_paths);
return cfg;
}
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 */