projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tap-driver.sh: flush stdout after each test result
[babeltrace.git]
/
plugins
/
utils
/
dummy
/
dummy.c
diff --git
a/plugins/utils/dummy/dummy.c
b/plugins/utils/dummy/dummy.c
index 5d513cf216b66ee47fe8cdad653fd6edaee79d02..59d851521ab5e4af8dc6cdc7b4b5c5749cea447e 100644
(file)
--- a/
plugins/utils/dummy/dummy.c
+++ b/
plugins/utils/dummy/dummy.c
@@
-20,12
+20,15
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include <babeltrace/babeltrace.h>
-#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace
2
/babeltrace.h>
+#include <babeltrace
2
/babeltrace-internal.h>
#include <plugins-common.h>
#include <plugins-common.h>
-#include <babeltrace/assert-internal.h>
+#include <babeltrace
2
/assert-internal.h>
#include "dummy.h"
#include "dummy.h"
+static
+const char * const in_port_name = "in";
+
void destroy_private_dummy_data(struct dummy *dummy)
{
bt_self_component_port_input_message_iterator_put_ref(dummy->msg_iter);
void destroy_private_dummy_data(struct dummy *dummy)
{
bt_self_component_port_input_message_iterator_put_ref(dummy->msg_iter);
@@
-46,12
+49,12
@@
void dummy_finalize(bt_self_component_sink *comp)
}
BT_HIDDEN
}
BT_HIDDEN
-
enum
bt_self_component_status dummy_init(
+bt_self_component_status dummy_init(
bt_self_component_sink *component,
const bt_value *params,
UNUSED_VAR void *init_method_data)
{
bt_self_component_sink *component,
const bt_value *params,
UNUSED_VAR void *init_method_data)
{
-
enum
bt_self_component_status ret;
+ bt_self_component_status ret;
struct dummy *dummy = g_new0(struct dummy, 1);
if (!dummy) {
struct dummy *dummy = g_new0(struct dummy, 1);
if (!dummy) {
@@
-77,12
+80,10
@@
end:
}
BT_HIDDEN
}
BT_HIDDEN
-enum bt_self_component_status dummy_port_connected(
- bt_self_component_sink *comp,
- bt_self_component_port_input *self_port,
- const bt_port_output *other_port)
+bt_self_component_status dummy_graph_is_configured(
+ bt_self_component_sink *comp)
{
{
-
enum
bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK;
struct dummy *dummy;
bt_self_component_port_input_message_iterator *iterator;
struct dummy *dummy;
bt_self_component_port_input_message_iterator *iterator;
@@
-90,7
+91,8
@@
enum bt_self_component_status dummy_port_connected(
bt_self_component_sink_as_self_component(comp));
BT_ASSERT(dummy);
iterator = bt_self_component_port_input_message_iterator_create(
bt_self_component_sink_as_self_component(comp));
BT_ASSERT(dummy);
iterator = bt_self_component_port_input_message_iterator_create(
- self_port);
+ bt_self_component_sink_borrow_input_port_by_name(comp,
+ in_port_name));
if (!iterator) {
status = BT_SELF_COMPONENT_STATUS_NOMEM;
goto end;
if (!iterator) {
status = BT_SELF_COMPONENT_STATUS_NOMEM;
goto end;
@@
-104,14
+106,14
@@
end:
}
BT_HIDDEN
}
BT_HIDDEN
-
enum
bt_self_component_status dummy_consume(
+bt_self_component_status dummy_consume(
bt_self_component_sink *component)
{
bt_self_component_sink *component)
{
-
enum
bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
+ bt_self_component_status ret = BT_SELF_COMPONENT_STATUS_OK;
bt_message_array_const msgs;
uint64_t count;
struct dummy *dummy;
bt_message_array_const msgs;
uint64_t count;
struct dummy *dummy;
-
enum
bt_message_iterator_status it_ret;
+ bt_message_iterator_status it_ret;
uint64_t i;
dummy = bt_self_component_get_data(
uint64_t i;
dummy = bt_self_component_get_data(
This page took
0.026314 seconds
and
4
git commands to generate.