bt2: report errors from Python component and component class callbacks
[babeltrace.git] / include / babeltrace2 / graph / component-class.h
index bd399f3a1c91d1a1b95d50da686c683cbf659576..63ad69f08fe9515c2d972d3dda48319c453d0760 100644 (file)
@@ -2,8 +2,7 @@
 #define BABELTRACE2_GRAPH_COMPONENT_CLASS_H
 
 /*
- * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
- * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@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.
  */
 
-/* For bt_component_class */
-#include <babeltrace2/types.h>
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
 
-/* For __BT_FUNC_STATUS_* */
-#define __BT_FUNC_STATUS_ENABLE
-#include <babeltrace2/func-status.h>
-#undef __BT_FUNC_STATUS_ENABLE
+#include <babeltrace2/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -111,6 +108,4 @@ extern bt_component_class_set_help_status bt_component_class_set_help(
 }
 #endif
 
-#include <babeltrace2/undef-func-status.h>
-
 #endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_H */
This page took 0.024025 seconds and 4 git commands to generate.