X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace2%2Fgraph%2Fself-component-class-filter.h;h=f2f96ceb6ba5ac23f04f35fe3c5deb73da724028;hb=ce95fb2680f08176955eb7cf2fd7cd7b6ad2fbfd;hp=83045f7093ba4d19ddb1e4b08179ee8be29200dd;hpb=924dc299c8a893e92fcd985fa05c245b591ef314;p=babeltrace.git diff --git a/include/babeltrace2/graph/self-component-class-filter.h b/include/babeltrace2/graph/self-component-class-filter.h index 83045f70..f2f96ceb 100644 --- a/include/babeltrace2/graph/self-component-class-filter.h +++ b/include/babeltrace2/graph/self-component-class-filter.h @@ -2,8 +2,7 @@ #define BABELTRACE2_GRAPH_SELF_COMPONENT_CLASS_FILTER_H /* - * Copyright 2017-2018 Philippe Proulx - * Copyright 2016 Jérémie Galarneau + * 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 @@ -24,10 +23,10 @@ * SOFTWARE. */ -/* - * For bt_component_class_filter, bt_self_component_class_filter, - * __BT_UPCAST_CONST - */ +#ifndef __BT_IN_BABELTRACE_H +# error "Please include instead." +#endif + #include #ifdef __cplusplus @@ -43,6 +42,14 @@ bt_self_component_class_filter_as_component_class_filter( 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