blob: 13ed26b7a5ff7cc27569c266a8dd64522cffb623 [file] [log] [blame]
Sergey Ulanovdc305db2016-01-15 01:14:541/*
kjellander1afca732016-02-08 04:46:452 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
Sergey Ulanovdc305db2016-01-15 01:14:543 *
kjellander1afca732016-02-08 04:46:454 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
Sergey Ulanovdc305db2016-01-15 01:14:549 */
10
Mirko Bonadei92ea95e2017-09-15 04:47:3111#ifndef MEDIA_BASE_TURNUTILS_H_
12#define MEDIA_BASE_TURNUTILS_H_
Sergey Ulanovdc305db2016-01-15 01:14:5413
14#include <cstddef>
15#include <cstdint>
16
17namespace cricket {
18
19struct PacketOptions;
20
21// Finds data location within a TURN Channel Message or TURN Send Indication
22// message.
23bool UnwrapTurnPacket(const uint8_t* packet,
24 size_t packet_size,
25 size_t* content_position,
26 size_t* content_size);
27
28} // namespace cricket
29
Mirko Bonadei92ea95e2017-09-15 04:47:3130#endif // MEDIA_BASE_TURNUTILS_H_