projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
self-component-source.h
diff --git
a/include/babeltrace/graph/self-component-source.h
b/include/babeltrace/graph/self-component-source.h
index 61bacd194595bfff735d0848df437f00ff8f5214..5fdee3f33e416bc884277f64ed6d1144c61a389f 100644
(file)
--- a/
include/babeltrace/graph/self-component-source.h
+++ b/
include/babeltrace/graph/self-component-source.h
@@
-2,7
+2,7
@@
#define BABELTRACE_GRAPH_SELF_COMPONENT_SOURCE_H
/*
#define BABELTRACE_GRAPH_SELF_COMPONENT_SOURCE_H
/*
- * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
+ * Copyright 2017
-2018
Philippe Proulx <pproulx@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
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@
-25,48
+25,49
@@
#include <stdint.h>
#include <stdint.h>
-/* For
enum
bt_self_component_status */
+/* For bt_self_component_status */
#include <babeltrace/graph/self-component.h>
#include <babeltrace/graph/self-component.h>
+/*
+ * For bt_component_source, bt_self_component, bt_self_component_source,
+ * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST
+ */
+#include <babeltrace/types.h>
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
-struct bt_component_source;
-struct bt_self_component;
-struct bt_self_component_source;
-struct bt_self_component_port_output;
-
static inline
static inline
-
struct bt_self_component *bt_self_component_source_borrow
_self_component(
-
struct
bt_self_component_source *self_comp_source)
+
bt_self_component *bt_self_component_source_as
_self_component(
+ bt_self_component_source *self_comp_source)
{
{
- return
(void *) self_comp_source
;
+ return
__BT_UPCAST(bt_self_component, self_comp_source)
;
}
static inline
}
static inline
-
struc
t bt_component_source *
-bt_self_component_source_
borrow
_component_source(
-
struct
bt_self_component_source *self_comp_source)
+
cons
t bt_component_source *
+bt_self_component_source_
as
_component_source(
+ bt_self_component_source *self_comp_source)
{
{
- return
(void *) self_comp_source
;
+ return
__BT_UPCAST_CONST(bt_component_source, self_comp_source)
;
}
}
-extern
struct
bt_self_component_port_output *
+extern bt_self_component_port_output *
bt_self_component_source_borrow_output_port_by_name(
bt_self_component_source_borrow_output_port_by_name(
-
struct
bt_self_component_source *self_component,
+ bt_self_component_source *self_component,
const char *name);
const char *name);
-extern
struct
bt_self_component_port_output *
+extern bt_self_component_port_output *
bt_self_component_source_borrow_output_port_by_index(
bt_self_component_source_borrow_output_port_by_index(
-
struct
bt_self_component_source *self_component,
+ bt_self_component_source *self_component,
uint64_t index);
uint64_t index);
-extern
enum
bt_self_component_status
+extern bt_self_component_status
bt_self_component_source_add_output_port(
bt_self_component_source_add_output_port(
-
struct
bt_self_component_source *self_component,
+ bt_self_component_source *self_component,
const char *name, void *user_data,
const char *name, void *user_data,
-
struct
bt_self_component_port_output **self_component_port);
+ bt_self_component_port_output **self_component_port);
#ifdef __cplusplus
}
#ifdef __cplusplus
}
This page took
0.025209 seconds
and
4
git commands to generate.