1#ifndef AWS_COMMON_COMMON_H
2#define AWS_COMMON_COMMON_H
3
4/*
5 * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License").
8 * You may not use this file except in compliance with the License.
9 * A copy of the License is located at
10 *
11 * http://aws.amazon.com/apache2.0
12 *
13 * or in the "license" file accompanying this file. This file is distributed
14 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
15 * express or implied. See the License for the specific language governing
16 * permissions and limitations under the License.
17 */
18
19#include <aws/common/config.h>
20#include <aws/common/exports.h>
21
22#include <aws/common/allocator.h>
23#include <aws/common/assert.h>
24#include <aws/common/error.h>
25#include <aws/common/macros.h>
26#include <aws/common/predicates.h>
27#include <aws/common/stdbool.h>
28#include <aws/common/stdint.h>
29#include <aws/common/zero.h>
30#include <stddef.h>
31#include <stdio.h>
32#include <stdlib.h> /* for abort() */
33#include <string.h>
34
35AWS_EXTERN_C_BEGIN
36
37/**
38 * Initializes internal datastructures used by aws-c-common.
39 * Must be called before using any functionality in aws-c-common.
40 */
41AWS_COMMON_API
42void aws_common_library_init(struct aws_allocator *allocator);
43
44/**
45 * Shuts down the internal datastructures used by aws-c-common.
46 */
47AWS_COMMON_API
48void aws_common_library_clean_up(void);
49
50AWS_COMMON_API
51void aws_common_fatal_assert_library_initialized(void);
52
53AWS_EXTERN_C_END
54
55#endif /* AWS_COMMON_COMMON_H */
56