X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fmessage-discarded-packets-const.h;fp=include%2Fbabeltrace%2Fgraph%2Fmessage-discarded-packets-const.h;h=ab067d78a17b9ce755868b42ee0cc5d7ad4c5ff7;hb=4237f1f2ad5a6745990fa5511169b8d088e94541;hp=0000000000000000000000000000000000000000;hpb=4c83328109059d6c19ca9cdd1ba7616ec0e91789;p=babeltrace.git diff --git a/include/babeltrace/graph/message-discarded-packets-const.h b/include/babeltrace/graph/message-discarded-packets-const.h new file mode 100644 index 00000000..ab067d78 --- /dev/null +++ b/include/babeltrace/graph/message-discarded-packets-const.h @@ -0,0 +1,54 @@ +#ifndef BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_CONST_H +#define BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_CONST_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. + */ + +/* For bt_message, bt_clock_snapshot, bt_stream */ +#include + +/* For bt_clock_snapshot_state */ +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern bt_clock_snapshot_state +bt_message_discarded_packets_borrow_default_beginning_clock_snapshot_const( + const bt_message *msg, const bt_clock_snapshot **snapshot); + +extern bt_clock_snapshot_state +bt_message_discarded_packets_borrow_default_end_clock_snapshot_const( + const bt_message *msg, const bt_clock_snapshot **snapshot); + +extern const bt_stream * +bt_message_discarded_packets_borrow_stream_const(const bt_message *message); + +extern bt_property_availability bt_message_discarded_packets_get_count( + const bt_message *message, uint64_t *count); + +#ifdef __cplusplus +} +#endif + +#endif /* BABELTRACE_GRAPH_MESSAGE_DISCARDED_PACKETS_CONST_H */