X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Ftrimmer%2Ftrimmer.c;h=1007886857d4e7a2624a5452e6ceabf865f5504d;hb=890882eff34b4cba6f08a25f8ca56866c20b3fbe;hp=af838d723e8adfbed3b938e6e4662f5e3d57ef8c;hpb=1bf957a039dfe5a1cd00659779fdb004aacd706b;p=babeltrace.git diff --git a/plugins/utils/trimmer/trimmer.c b/plugins/utils/trimmer/trimmer.c index af838d72..10078868 100644 --- a/plugins/utils/trimmer/trimmer.c +++ b/plugins/utils/trimmer/trimmer.c @@ -28,9 +28,11 @@ #include #include +#include #include #include #include +#include #include #include #include "trimmer.h" @@ -56,9 +58,9 @@ end: return trimmer; } -void destroy_trimmer(struct bt_component *component) +void destroy_trimmer(struct bt_private_component *component) { - void *data = bt_component_get_private_data(component); + void *data = bt_private_component_get_user_data(component); destroy_trimmer_data(data); } @@ -285,7 +287,8 @@ lazy: } static -enum bt_component_status init_from_params(struct trimmer *trimmer, struct bt_value *params) +enum bt_component_status init_from_params(struct trimmer *trimmer, + struct bt_value *params) { struct bt_value *value = NULL; bool gmt = false; @@ -349,7 +352,7 @@ end: } enum bt_component_status trimmer_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; @@ -360,7 +363,7 @@ enum bt_component_status trimmer_component_init( goto end; } - ret = bt_component_set_private_data(component, trimmer); + ret = bt_private_component_set_user_data(component, trimmer); if (ret != BT_COMPONENT_STATUS_OK) { goto error; }