Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
print.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Roc 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/target_stdio/roc_packet/print.h
10 //! @brief Print packet to stdout.
11 
12 #ifndef ROC_PACKET_PRINT_H_
13 #define ROC_PACKET_PRINT_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(const Packet& packet, int flags);
27 
28 } // namespace packet
29 } // namespace roc
30 
31 #endif // ROC_PACKET_PRINT_H_
Root namespace.
Print packet payload.
Definition: print.h:22
Packet.
Definition: packet.h:35
void print(const Packet &packet, int flags)
Print packet to stderr.