blob: 103860ad7798936ce59b1b5826879b533ed426f7 [file] [log] [blame]
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_
#define QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_
#include "quiche/common/platform/api/quiche_export.h"
namespace quiche {
// IP address family type used in QUIC. This hides platform dependant IP address
// family types.
enum class IpAddressFamily {
IP_V4,
IP_V6,
IP_UNSPEC,
};
QUICHE_EXPORT int ToPlatformAddressFamily(IpAddressFamily family);
QUICHE_EXPORT IpAddressFamily FromPlatformAddressFamily(int family);
} // namespace quiche
#endif // QUICHE_COMMON_QUICHE_IP_ADDRESS_FAMILY_H_