lib: make message iterator creation functions return a status
[babeltrace.git] / include / babeltrace2 / logging.h
index 5001e139da74c9aa329cfef6500ded6acba55313..ae03d8d1c225d6c47c1ef9d5d67e9695097b7dcb 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef BABELTRACE_LOGGING_H
-#define BABELTRACE_LOGGING_H
+#ifndef BABELTRACE2_LOGGING_H
+#define BABELTRACE2_LOGGING_H
 
 /*
- * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
+ * Copyright (c) 2010-2019 EfficiOS Inc. and Linux Foundation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 #include <stdbool.h>
 #include <stddef.h>
@@ -83,7 +87,7 @@ typedef enum bt_logging_level {
        The library's and object's states remain consistent when a
        warning is issued.
        */
-       BT_LOGGING_LEVEL_WARN           = 4,
+       BT_LOGGING_LEVEL_WARNING                = 4,
 
        /**
        An important error from which the library cannot recover, but
@@ -146,4 +150,4 @@ extern void bt_logging_set_global_level(bt_logging_level log_level);
 }
 #endif
 
-#endif /* BABELTRACE_LOGGING_H */
+#endif /* BABELTRACE2_LOGGING_H */
This page took 0.026701 seconds and 4 git commands to generate.