Debian Codegraph @

crt/aws-c-sdkutils/include/aws/sdkutils/partitions.h

raw symbols SCIP
1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #ifndef AWS_SDKUTILS_PARTITIONS_H
7 #define AWS_SDKUTILS_PARTITIONS_H
8
9 #include <aws/common/byte_buf.h>
10 #include <aws/sdkutils/sdkutils.h>
11
12 AWS_PUSH_SANE_WARNING_LEVEL
13
14 struct aws_partitions_config;
15
16 AWS_EXTERN_C_BEGIN
17
18 AWS_SDKUTILS_API struct aws_byte_cursor aws_partitions_get_supported_version(void);
19
20 /*
21 * Create new partitions config from a json string.
22 * In cases of failure NULL is returned and last error is set.
23 */
24 AWS_SDKUTILS_API struct aws_partitions_config *aws_partitions_config_new_from_string(
25 struct aws_allocator *allocator,
26 struct aws_byte_cursor json);
27
28 /*
29 * Increment ref count
30 */
31 AWS_SDKUTILS_API struct aws_partitions_config *aws_partitions_config_acquire(struct aws_partitions_config *partitions);
32
33 /*
34 * Decrement ref count
35 */
36 AWS_SDKUTILS_API struct aws_partitions_config *aws_partitions_config_release(struct aws_partitions_config *partitions);
37
38 AWS_EXTERN_C_END
39 AWS_POP_SANE_WARNING_LEVEL
40
41 #endif /* AWS_SDKUTILS_PARTITIONS_H */