Skip to content

Commit

Permalink
function renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Aug 17, 2023
1 parent 4329c60 commit 6ab6b0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/aws/mqtt/private/v5/mqtt5_to_mqtt3_adapter_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ struct aws_mqtt_client_connection_5_impl {
aws_mqtt_client_on_connection_complete_fn *on_connection_complete;
void *on_connection_complete_user_data;

aws_mqtt_client_on_termination_fn *on_termination;
aws_mqtt_client_on_connection_termination_fn *on_termination;
void *on_termination_user_data;
};

Expand Down
8 changes: 4 additions & 4 deletions source/v5/mqtt5_to_mqtt3_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ struct aws_mqtt_set_on_termination_handlers_task {
struct aws_allocator *allocator;
struct aws_mqtt_client_connection_5_impl *adapter;

aws_mqtt_client_on_termination_fn *on_termination_callback;
aws_mqtt_client_on_connection_termination_fn *on_termination_callback;
void *on_termination_ud;
};

Expand All @@ -1112,7 +1112,7 @@ static void s_set_on_termination_handlers_task_fn(struct aws_task *task, void *a
static struct aws_mqtt_set_on_termination_handlers_task *s_aws_mqtt_set_on_termination_handler_task_new(
struct aws_allocator *allocator,
struct aws_mqtt_client_connection_5_impl *adapter,
aws_mqtt_client_on_termination_fn *on_termination,
aws_mqtt_client_on_connection_termination_fn *on_termination,
void *on_termination_user_data) {

struct aws_mqtt_set_on_termination_handlers_task *set_task =
Expand All @@ -1129,7 +1129,7 @@ static struct aws_mqtt_set_on_termination_handlers_task *s_aws_mqtt_set_on_termi

static int s_aws_mqtt_client_connection_5_set_termination_handler(
void *impl,
aws_mqtt_client_on_termination_fn *on_termination,
aws_mqtt_client_on_connection_termination_fn *on_termination,
void *on_termination_ud) {
struct aws_mqtt_client_connection_5_impl *adapter = impl;

Expand Down Expand Up @@ -2953,7 +2953,7 @@ static struct aws_mqtt_client_connection_vtable s_aws_mqtt_client_connection_5_v
.set_connection_result_handlers = s_aws_mqtt_client_connection_5_set_connection_result_handlers,
.set_connection_interruption_handlers_fn = s_aws_mqtt_client_connection_5_set_interruption_handlers,
.set_connection_closed_handler_fn = s_aws_mqtt_client_connection_5_set_on_closed_handler,
.set_termination_handler_fn = s_aws_mqtt_client_connection_5_set_termination_handler,
.set_connection_termination_handler_fn = s_aws_mqtt_client_connection_5_set_termination_handler,
.set_on_any_publish_handler_fn = s_aws_mqtt_client_connection_5_set_on_any_publish_handler,
.connect_fn = s_aws_mqtt_client_connection_5_connect,
.reconnect_fn = s_aws_mqtt_client_connection_5_reconnect,
Expand Down
2 changes: 1 addition & 1 deletion tests/v5/mqtt5_to_mqtt3_adapter_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ int aws_mqtt5_to_mqtt3_adapter_test_fixture_init(
aws_mutex_init(&fixture->lock);
aws_condition_variable_init(&fixture->signal);

aws_mqtt_client_connection_set_termination_handler(
aws_mqtt_client_connection_set_connection_termination_handler(
fixture->connection, s_aws_mqtt5_to_mqtt3_adapter_test_fixture_termination_handler, fixture);
aws_mqtt_client_connection_set_connection_closed_handler(
fixture->connection, s_aws_mqtt5_to_mqtt3_adapter_test_fixture_closed_handler, fixture);
Expand Down

0 comments on commit 6ab6b0c

Please sign in to comment.