#define BABELTRACE_GRAPH_COMPONENT_FILTER_INTERNAL_H
/*
- * BabelTrace - Filter Component Internal
- *
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
* Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*/
#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/graph/component-filter-const.h>
#include <babeltrace/graph/component-internal.h>
#include <babeltrace/graph/component-class-internal.h>
-struct bt_value;
-
struct bt_component_filter {
struct bt_component parent;
};
-/**
- * Allocate a filter component.
- *
- * @param class Component class
- * @param params A dictionary of component parameters
- * @returns A filter component instance
- */
BT_HIDDEN
struct bt_component *bt_component_filter_create(
- struct bt_component_class *class);
+ const struct bt_component_class *class);
BT_HIDDEN
void bt_component_filter_destroy(struct bt_component *component);