Debian Codegraph @

crt/aws-c-common/include/aws/common/host_utils.h

raw symbols SCIP
1 #ifndef AWS_COMMON_HOST_UTILS_H
2 #define AWS_COMMON_HOST_UTILS_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #include <aws/common/common.h>
8
9 struct aws_byte_cursor;
10
11 AWS_PUSH_SANE_WARNING_LEVEL
12 AWS_EXTERN_C_BEGIN
13
14 /*
15 * Determine whether host cursor is IPv4 string.
16 */
17 AWS_COMMON_API bool aws_host_utils_is_ipv4(struct aws_byte_cursor host);
18
19 /*
20 * Determine whether host cursor is IPv6 string.
21 * Supports checking for uri encoded strings and scoped literals.
22 */
23 AWS_COMMON_API bool aws_host_utils_is_ipv6(struct aws_byte_cursor host, bool is_uri_encoded);
24
25 AWS_EXTERN_C_END
26 AWS_POP_SANE_WARNING_LEVEL
27
28 #endif /* AWS_COMMON_HOST_UTILS_H */