blob: 08dfafce09dafa37aaab58b45b186ab9e9898192 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/Core_EXPORTS.h>
namespace Aws
{
namespace Crt
{
class ApiHandle;
namespace Io
{
class ClientBootstrap;
class TlsConnectionOptions;
}
}
/**
* Like we need to call InitAPI() to initialize aws-sdk-cpp, we need ApiHandle to initialize aws-crt-cpp, which is a wrapper of a collection of common runtime libraries.
* We will wrap the memory management system and pass it to common runtime libraries via ApiHandle.
*/
AWS_CORE_API Aws::Crt::ApiHandle* GetApiHandle();
/**
* Set the default ClientBootStrap for AWS common runtime libraries in the global scope.
*/
AWS_CORE_API void SetDefaultClientBootstrap(const std::shared_ptr<Aws::Crt::Io::ClientBootstrap>& clientBootstrap);
/**
* Get the default ClientBootStrap for AWS common runtime libraries in the global scope.
*/
AWS_CORE_API Aws::Crt::Io::ClientBootstrap* GetDefaultClientBootstrap();
/**
* Set the default TlsConnectionOptions for AWS common runtime libraries in the global scope.
*/
AWS_CORE_API void SetDefaultTlsConnectionOptions(const std::shared_ptr<Aws::Crt::Io::TlsConnectionOptions>& tlsConnectionOptions);
/**
* Get the default TlsConnectionOptions for AWS common runtime libraries in the global scope.
*/
AWS_CORE_API Aws::Crt::Io::TlsConnectionOptions* GetDefaultTlsConnectionOptions();
/**
* Initialize ApiHandle in aws-crt-cpp.
*/
void InitializeCrt();
/**
* Clean up ApiHandle in aws-crt-cpp.
*/
void CleanupCrt();
namespace Utils
{
class EnumParseOverflowContainer;
}
/**
* This is used to handle the Enum round tripping problem
* for when a service updates their enumerations, but the user does not
* have an up to date client. This container will be initialized during Aws::InitAPI
* and will be cleaned on Aws::ShutdownAPI.
*/
AWS_CORE_API Utils::EnumParseOverflowContainer* GetEnumOverflowContainer();
/**
* Initializes a global overflow container to a new instance.
* This should only be called once from within Aws::InitAPI
*/
void InitializeEnumOverflowContainer();
/**
* Destroys the global overflow container instance.
* This should only be called once from within Aws::ShutdownAPI
*/
void CleanupEnumOverflowContainer();
}
|