Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
print_packet.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_packet/print_packet.h
10 //! @brief Print packet to console.
11 
12 #ifndef ROC_PACKET_PRINT_PACKET_H_
13 #define ROC_PACKET_PRINT_PACKET_H_
14 
15 namespace roc {
16 namespace packet {
17 
18 class Packet;
19 
20 //! Print flags.
21 enum {
22  PrintPayload = (1 << 0) //!< Print packet payload.
23 };
24 
25 //! Print packet to stderr.
26 void print_packet(const Packet& packet, int flags);
27 
28 } // namespace packet
29 } // namespace roc
30 
31 #endif // ROC_PACKET_PRINT_PACKET_H_
void print_packet(const Packet &packet, int flags)
Print packet to stderr.
@ PrintPayload
Print packet payload.
Definition: print_packet.h:22
Root namespace.