#define BABELTRACE_LOGGING_H
/*
- * Babeltrace - Logging
- *
* Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
-#include <babeltrace/ref.h>
#ifdef __cplusplus
extern "C" {
/**
@brief Log levels.
*/
-enum bt_logging_level {
+typedef enum bt_logging_level {
/// Additional, low-level debugging context information.
BT_LOGGING_LEVEL_VERBOSE = 1,
/// Logging is disabled.
BT_LOGGING_LEVEL_NONE = 0xff,
-};
+} bt_logging_level;
/**
@brief Returns the minimal log level of the Babeltrace library.
@sa bt_logging_get_global_level(): Returns the current global log level.
*/
-extern enum bt_logging_level bt_logging_get_minimal_level(void);
+extern bt_logging_level bt_logging_get_minimal_level(void);
/**
@brief Returns the current global log level of the Babeltrace library.
@sa bt_logging_set_global_level(): Sets the current global log level.
@sa bt_logging_get_minimal_level(): Returns the minimal log level.
*/
-extern enum bt_logging_level bt_logging_get_global_level(void);
+extern bt_logging_level bt_logging_get_global_level(void);
/**
@brief Sets the current global log level of the Babeltrace library
@sa bt_logging_get_global_level(): Returns the global log level.
*/
-extern void bt_logging_set_global_level(enum bt_logging_level log_level);
+extern void bt_logging_set_global_level(bt_logging_level log_level);
/** @} */