LeviLamina
Loading...
Searching...
No Matches
http_singleton.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/lib_http_client/http_alloc_deleter.h"
7
8// auto generated forward declare list
9// clang-format off
10struct HCInitArgs;
11namespace xbox::httpclient { class NetworkState; }
12namespace xbox::httpclient { struct http_retry_after_api_state; }
13// clang-format on
14
15namespace xbox::httpclient {
16
18public:
19 // http_singleton inner types define
20 enum class singleton_access_mode : int {
21 Create = 0,
22 Get = 1,
23 Cleanup = 2,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 http_singleton& operator=(http_singleton const&);
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI void clear_retry_state(uint retryAfterCacheId);
59
60 MCNAPI ::xbox::httpclient::http_retry_after_api_state get_retry_state(uint retryAfterCacheId);
61
62 MCNAPI explicit http_singleton(
64 networkState
65 );
66
67 MCNAPI void set_retry_state(uint retryAfterCacheId, ::xbox::httpclient::http_retry_after_api_state const& state);
68
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCNAPI static long create(::HCInitArgs* args);
76
77 MCNAPI static long singleton_access(
78 ::xbox::httpclient::http_singleton::singleton_access_mode mode,
79 ::HCInitArgs* createArgs,
80 ::std::shared_ptr<::xbox::httpclient::http_singleton>& singleton
81 );
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCNAPI void* $ctor(
89 networkState
90 );
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI void $dtor();
97 // NOLINTEND
98};
99
100} // namespace xbox::httpclient
Definition NetworkState.h:25
Definition HCInitArgs.h:5
Definition http_alloc_deleter.h:6
Definition Alias.h:14
Definition http_retry_after_api_state.h:7
Definition http_singleton.h:17
MCAPI::xbox::httpclient::http_retry_after_api_state get_retry_state(uint retryAfterCacheId)
static MCAPI long singleton_access(::xbox::httpclient::http_singleton::singleton_access_mode mode, ::HCInitArgs *createArgs, ::std::shared_ptr<::xbox::httpclient::http_singleton > &singleton)
MCAPI http_singleton(::std::unique_ptr<::xbox::httpclient::NetworkState, ::http_alloc_deleter<::xbox::httpclient::NetworkState > > networkState)
MCAPI void clear_retry_state(uint retryAfterCacheId)
MCAPI void set_retry_state(uint retryAfterCacheId, ::xbox::httpclient::http_retry_after_api_state const &state)
static MCAPI long create(::HCInitArgs *args)
MCAPI void * $ctor(::std::unique_ptr<::xbox::httpclient::NetworkState, ::http_alloc_deleter<::xbox::httpclient::NetworkState > > networkState)