| 1 | #ifndef AWS_CHECKSUMS_CHECKSUMS_H |
| 2 | #define AWS_CHECKSUMS_CHECKSUMS_H |
| 3 | /** |
| 4 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 5 | * SPDX-License-Identifier: Apache-2.0. |
| 6 | */ |
| 7 | |
| 8 | #include <aws/checksums/exports.h> |
| 9 | #include <aws/common/common.h> |
| 10 | |
| 11 | AWS_PUSH_SANE_WARNING_LEVEL |
| 12 | AWS_EXTERN_C_BEGIN |
| 13 | |
| 14 | /** |
| 15 | * Initializes internal data structures used by aws-checksums. |
| 16 | * MUST be called before using any functionality in aws-checksums. |
| 17 | * Note: historically aws-checksums lazily initialized stuff and things worked without init. |
| 18 | * However, DO NOT rely on that behavior and explicitly call init instead. |
| 19 | */ |
| 20 | AWS_CHECKSUMS_API void aws_checksums_library_init(struct aws_allocator *allocator); |
| 21 | |
| 22 | /** |
| 23 | * Shuts down the internal data structures used by aws-checksums. |
| 24 | */ |
| 25 | AWS_CHECKSUMS_API void aws_checksums_library_clean_up(void); |
| 26 | |
| 27 | AWS_EXTERN_C_END |
| 28 | AWS_POP_SANE_WARNING_LEVEL |
| 29 | |
| 30 | #endif /* AWS_CHECKSUMS_CHECKSUMS_H */ |