#define BABELTRACE2_GRAPH_SELF_COMPONENT_CLASS_FILTER_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_filter, bt_self_component_class_filter,
- * __BT_UPCAST_CONST
- */
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
#include <babeltrace2/types.h>
#ifdef __cplusplus
self_comp_cls_filter);
}
+static inline
+bt_self_component_class*
+bt_self_component_class_filter_as_self_component_class(
+ bt_self_component_class_filter *self_comp_cls_filter)
+{
+ return __BT_UPCAST(bt_self_component_class, self_comp_cls_filter);
+}
+
#ifdef __cplusplus
}
#endif