diff --git a/include/ada_c.h b/include/ada_c.h index 5b1671426..35099166c 100644 --- a/include/ada_c.h +++ b/include/ada_c.h @@ -68,7 +68,7 @@ ada_string ada_get_hostname(ada_url result); ada_string ada_get_pathname(ada_url result); ada_string ada_get_search(ada_url result); ada_string ada_get_protocol(ada_url result); -uint8_t ada_get_url_host_type(ada_url result); +uint8_t ada_get_host_type(ada_url result); // url_aggregator setters // if ada_is_valid(result)) is false, the setters have no effect diff --git a/src/ada_c.cpp b/src/ada_c.cpp index cb3582fe1..4273c9e9f 100644 --- a/src/ada_c.cpp +++ b/src/ada_c.cpp @@ -210,7 +210,7 @@ ada_string ada_get_protocol(ada_url result) noexcept { return ada_string_create(out.data(), out.length()); } -uint8_t ada_get_url_host_type(ada_url result) noexcept { +uint8_t ada_get_host_type(ada_url result) noexcept { ada::result& r = get_instance(result); if (!r) { return 0; diff --git a/tests/ada_c.cpp b/tests/ada_c.cpp index 0211d8ad0..cb2cf971e 100644 --- a/tests/ada_c.cpp +++ b/tests/ada_c.cpp @@ -115,7 +115,7 @@ TEST(ada_c, setters) { ada_set_protocol(url, "wss", 3); ASSERT_EQ(convert_string(ada_get_protocol(url)), "wss:"); - ASSERT_EQ(ada_get_url_host_type(url), 0); + ASSERT_EQ(ada_get_host_type(url), 0); ada_free(url);