| 1 |
#ifndef AWS_HTTP_CONNECTION_MANAGER_SYSTEM_VTABLE_H |
| 2 |
#define AWS_HTTP_CONNECTION_MANAGER_SYSTEM_VTABLE_H |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#include <aws/http/http.h> |
| 10 |
|
| 11 |
#include <aws/http/connection.h> |
| 12 |
|
| 13 |
struct aws_http_connection_manager; |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
struct aws_http_connection_manager_system_vtable { |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
int (*aws_http_client_connect)(const struct aws_http_client_connection_options *options); |
| 22 |
void (*aws_http_connection_close)(struct aws_http_connection *connection); |
| 23 |
void (*aws_http_connection_release)(struct aws_http_connection *connection); |
| 24 |
bool (*aws_http_connection_new_requests_allowed)(const struct aws_http_connection *connection); |
| 25 |
int (*aws_high_res_clock_get_ticks)(uint64_t *timestamp); |
| 26 |
bool (*aws_channel_thread_is_callers_thread)(struct aws_channel *channel); |
| 27 |
struct aws_channel *(*aws_http_connection_get_channel)(struct aws_http_connection *connection); |
| 28 |
enum aws_http_version (*aws_http_connection_get_version)(const struct aws_http_connection *connection); |
| 29 |
}; |
| 30 |
|
| 31 |
AWS_HTTP_API |
| 32 |
bool aws_http_connection_manager_system_vtable_is_valid(const struct aws_http_connection_manager_system_vtable *table); |
| 33 |
|
| 34 |
AWS_HTTP_API |
| 35 |
void aws_http_connection_manager_set_system_vtable( |
| 36 |
struct aws_http_connection_manager *manager, |
| 37 |
const struct aws_http_connection_manager_system_vtable *system_vtable); |
| 38 |
|
| 39 |
AWS_HTTP_API |
| 40 |
extern const struct aws_http_connection_manager_system_vtable *g_aws_http_connection_manager_default_system_vtable_ptr; |
| 41 |
|
| 42 |
#endif |