lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / message-discarded-packets.h
index c0d4af5b2e66eca599c5e5c2dca5b75c86c2c181..bc1896b1a7e5b56465d9a93a2365c7dbef6be52c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H
-#define BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H
+#ifndef BABELTRACE2_GRAPH_MESSAGE_DISCARDED_PACKETS_H
+#define BABELTRACE2_GRAPH_MESSAGE_DISCARDED_PACKETS_H
 
 /*
  * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /* For bt_message, bt_self_message_iterator, bt_stream */
@@ -51,4 +55,4 @@ extern void bt_message_discarded_packets_set_count(bt_message *message,
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H */
+#endif /* BABELTRACE2_GRAPH_MESSAGE_DISCARDED_PACKETS_H */
This page took 0.026077 seconds and 4 git commands to generate.