Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use const for host_resolution_config
  • Loading branch information
waahm7 committed Nov 9, 2022
commit 3346f3f68938ffe040c47bc95c39ad69461ed183
2 changes: 1 addition & 1 deletion include/aws/io/channel_bootstrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct aws_client_bootstrap_options {
/* Optional. If none is provided then default settings are used.
* This object is deep-copied by bootstrap.
* */
struct aws_host_resolution_config *host_resolution_config;
const struct aws_host_resolution_config *host_resolution_config;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


/* Optional. If provided, callback is invoked when client bootstrap has completely shut down. */
aws_client_bootstrap_shutdown_complete_fn *on_shutdown_complete;
Expand Down
4 changes: 2 additions & 2 deletions include/aws/io/host_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct aws_host_resolver_vtable {
struct aws_host_resolver *resolver,
const struct aws_string *host_name,
aws_on_host_resolved_result_fn *res,
struct aws_host_resolution_config *config,
const struct aws_host_resolution_config *config,
void *user_data);
/** gives your implementation a hint that an address has some failed connections occuring. Do whatever you want (or
* nothing) about it.
Expand Down Expand Up @@ -204,7 +204,7 @@ AWS_IO_API int aws_host_resolver_resolve_host(
struct aws_host_resolver *resolver,
const struct aws_string *host_name,
aws_on_host_resolved_result_fn *res,
struct aws_host_resolution_config *config,
const struct aws_host_resolution_config *config,
void *user_data);

/**
Expand Down
6 changes: 3 additions & 3 deletions source/host_resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int aws_host_resolver_resolve_host(
struct aws_host_resolver *resolver,
const struct aws_string *host_name,
aws_on_host_resolved_result_fn *res,
struct aws_host_resolution_config *config,
const struct aws_host_resolution_config *config,
void *user_data) {
AWS_ASSERT(resolver->vtable && resolver->vtable->resolve_host);
return resolver->vtable->resolve_host(resolver, host_name, res, config, user_data);
Expand Down Expand Up @@ -1252,7 +1252,7 @@ static inline int create_and_init_host_entry(
struct aws_host_resolver *resolver,
const struct aws_string *host_name,
aws_on_host_resolved_result_fn *res,
struct aws_host_resolution_config *config,
const struct aws_host_resolution_config *config,
uint64_t timestamp,
void *user_data) {
struct host_entry *new_host_entry = aws_mem_calloc(resolver->allocator, 1, sizeof(struct host_entry));
Expand Down Expand Up @@ -1381,7 +1381,7 @@ static int default_resolve_host(
struct aws_host_resolver *resolver,
const struct aws_string *host_name,
aws_on_host_resolved_result_fn *res,
struct aws_host_resolution_config *config,
const struct aws_host_resolution_config *config,
void *user_data) {
int result = AWS_OP_SUCCESS;

Expand Down