X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Ftrimmer%2Ftrimmer.h;h=e792c3e5373a1f78ebdeb7b95ca2aa9892d529ed;hb=68b66a256a54d32992dfefeaad11eea88b7df234;hp=f3980f079e7708af2a8caf6bac33faa657a305d3;hpb=b19ff26f04df428047676dd736bd7cc9473906fe;p=babeltrace.git diff --git a/plugins/utils/trimmer/trimmer.h b/plugins/utils/trimmer/trimmer.h index f3980f07..e792c3e5 100644 --- a/plugins/utils/trimmer/trimmer.h +++ b/plugins/utils/trimmer/trimmer.h @@ -28,31 +28,29 @@ */ #include -#include -#include - -#define NSEC_PER_SEC 1000000000LL - -struct trimmer_bound { - int64_t value; - bool set; - bool lazy; - struct { - int hh, mm, ss, ns; - bool gmt; - } lazy_values; -}; - -struct trimmer { - struct trimmer_bound begin, end; - bool date; - int year, month, day; -}; - -enum bt_component_status trimmer_component_init( - bt_self_component *component, - bt_value *params, void *init_method_data); - -void finalize_trimmer(bt_self_component *component); +#include +#include + +BT_HIDDEN +void trimmer_finalize(bt_self_component_filter *self_comp); + +BT_HIDDEN +bt_self_component_status trimmer_init(bt_self_component_filter *self_comp, + const bt_value *params, void *init_data); + +BT_HIDDEN +bt_self_message_iterator_status trimmer_msg_iter_init( + bt_self_message_iterator *self_msg_iter, + bt_self_component_filter *self_comp, + bt_self_component_port_output *port); + +BT_HIDDEN +bt_self_message_iterator_status trimmer_msg_iter_next( + bt_self_message_iterator *self_msg_iter, + bt_message_array_const msgs, uint64_t capacity, + uint64_t *count); + +BT_HIDDEN +void trimmer_msg_iter_finalize(bt_self_message_iterator *self_msg_iter); #endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_H */