Adopt absl::string_view in rtc_base/ (straightforward cases)
Bug: webrtc:13579 Change-Id: I240db6285abb22652242bc0b2ebe9844ec4a45f0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258723 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36561}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
a62136ac74
commit
2ab914c6ab
@ -19,12 +19,14 @@
|
||||
#include "rtc_base/win32.h"
|
||||
#endif
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
|
||||
namespace rtc {
|
||||
|
||||
// rtc namespaced wrappers for inet_ntop and inet_pton so we can avoid
|
||||
// the windows-native versions of these.
|
||||
const char* inet_ntop(int af, const void* src, char* dst, socklen_t size);
|
||||
int inet_pton(int af, const char* src, void* dst);
|
||||
int inet_pton(int af, absl::string_view src, void* dst);
|
||||
|
||||
bool HasIPv4Enabled();
|
||||
bool HasIPv6Enabled();
|
||||
|
||||
Reference in New Issue
Block a user