projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Visibility: split graph API into public and private interfaces
[babeltrace.git]
/
plugins
/
text
/
text.c
diff --git
a/plugins/text/text.c
b/plugins/text/text.c
index 70111631eca0e4151dde5f36c65287c818bc3455..ecd6bbea65e54fc2a2336e5cc1896192a799ce68 100644
(file)
--- a/
plugins/text/text.c
+++ b/
plugins/text/text.c
@@
-29,9
+29,12
@@
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/component/component.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/component/component.h>
+#include <babeltrace/component/private-component.h>
#include <babeltrace/component/component-sink.h>
#include <babeltrace/component/port.h>
#include <babeltrace/component/component-sink.h>
#include <babeltrace/component/port.h>
+#include <babeltrace/component/private-port.h>
#include <babeltrace/component/connection.h>
#include <babeltrace/component/connection.h>
+#include <babeltrace/component/private-connection.h>
#include <babeltrace/component/notification/notification.h>
#include <babeltrace/component/notification/iterator.h>
#include <babeltrace/component/notification/event.h>
#include <babeltrace/component/notification/notification.h>
#include <babeltrace/component/notification/iterator.h>
#include <babeltrace/component/notification/event.h>
@@
-106,9
+109,9
@@
error:
}
static
}
static
-void destroy_text(struct bt_component *component)
+void destroy_text(struct bt_
private_
component *component)
{
{
- void *data = bt_
component_get_private
_data(component);
+ void *data = bt_
private_component_get_user
_data(component);
destroy_text_data(data);
}
destroy_text_data(data);
}
@@
-158,20
+161,21
@@
end:
}
static
}
static
-enum bt_component_status text_accept_port_connection(struct bt_component *component,
- struct bt_port *self_port)
+enum bt_component_status text_accept_port_connection(
+ struct bt_private_component *component,
+ struct bt_private_port *self_port)
{
enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
{
enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
- struct bt_connection *connection;
+ struct bt_
private_
connection *connection;
struct text_component *text;
struct text_component *text;
- text = bt_
component_get_private
_data(component);
+ text = bt_
private_component_get_user
_data(component);
assert(text);
assert(!text->input_iterator);
assert(text);
assert(!text->input_iterator);
- connection = bt_p
ort_get
_connection(self_port);
+ connection = bt_p
rivate_port_get_private
_connection(self_port);
assert(connection);
assert(connection);
- text->input_iterator =
bt_connection_create_notification_iterator(
-
connection);
+ text->input_iterator =
+
bt_private_connection_create_notification_iterator(
connection);
if (!text->input_iterator) {
ret = BT_COMPONENT_STATUS_ERROR;
if (!text->input_iterator) {
ret = BT_COMPONENT_STATUS_ERROR;
@@
-182,12
+186,13
@@
enum bt_component_status text_accept_port_connection(struct bt_component *compon
}
static
}
static
-enum bt_component_status run(struct bt_component *component)
+enum bt_component_status run(struct bt_
private_
component *component)
{
enum bt_component_status ret;
struct bt_notification *notification = NULL;
struct bt_notification_iterator *it;
{
enum bt_component_status ret;
struct bt_notification *notification = NULL;
struct bt_notification_iterator *it;
- struct text_component *text = bt_component_get_private_data(component);
+ struct text_component *text =
+ bt_private_component_get_user_data(component);
it = text->input_iterator;
it = text->input_iterator;
@@
-711,7
+716,8
@@
void init_stream_packet_context_quarks(void)
static
enum bt_component_status text_component_init(
static
enum bt_component_status text_component_init(
- struct bt_component *component, struct bt_value *params,
+ struct bt_private_component *component,
+ struct bt_value *params,
UNUSED_VAR void *init_method_data)
{
enum bt_component_status ret;
UNUSED_VAR void *init_method_data)
{
enum bt_component_status ret;
@@
-738,7
+744,7
@@
enum bt_component_status text_component_init(
set_use_colors(text);
set_use_colors(text);
- ret = bt_
component_set_private
_data(component, text);
+ ret = bt_
private_component_set_user
_data(component, text);
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
This page took
0.025343 seconds
and
4
git commands to generate.