X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fmessage-discarded-packets.h;fp=include%2Fbabeltrace%2Fgraph%2Fmessage-discarded-packets.h;h=cb8dc73823b6fd2d7ca86dfee8ab303a6c09dacd;hb=4237f1f2ad5a6745990fa5511169b8d088e94541;hp=0000000000000000000000000000000000000000;hpb=4c83328109059d6c19ca9cdd1ba7616ec0e91789;p=babeltrace.git diff --git a/include/babeltrace/graph/message-discarded-packets.h b/include/babeltrace/graph/message-discarded-packets.h new file mode 100644 index 00000000..cb8dc738 --- /dev/null +++ b/include/babeltrace/graph/message-discarded-packets.h @@ -0,0 +1,54 @@ +#ifndef BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H +#define BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H + +/* + * Copyright 2019 Philippe Proulx + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#include + +/* For bt_message, bt_self_message_iterator, bt_stream */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern bt_message *bt_message_discarded_packets_create( + bt_self_message_iterator *message_iterator, + bt_stream *stream); + +extern bt_message *bt_message_discarded_packets_create_with_default_clock_snapshots( + bt_self_message_iterator *message_iterator, + bt_stream *stream, uint64_t beginning_raw_value, + uint64_t end_raw_value); + +extern bt_stream *bt_message_discarded_packets_borrow_stream( + bt_message *message); + +extern void bt_message_discarded_packets_set_count(bt_message *message, + uint64_t count); + +#ifdef __cplusplus +} +#endif + +#endif /* BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_H */