Skip to content

Commit eddcf3a

Browse files
committed
refactor: rename ada_get_host_type
1 parent aeaec10 commit eddcf3a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/ada_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ada_string ada_get_hostname(ada_url result);
6868
ada_string ada_get_pathname(ada_url result);
6969
ada_string ada_get_search(ada_url result);
7070
ada_string ada_get_protocol(ada_url result);
71-
uint8_t ada_get_url_host_type(ada_url result);
71+
uint8_t ada_get_host_type(ada_url result);
7272

7373
// url_aggregator setters
7474
// if ada_is_valid(result)) is false, the setters have no effect

src/ada_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ ada_string ada_get_protocol(ada_url result) noexcept {
210210
return ada_string_create(out.data(), out.length());
211211
}
212212

213-
uint8_t ada_get_url_host_type(ada_url result) noexcept {
213+
uint8_t ada_get_host_type(ada_url result) noexcept {
214214
ada::result<ada::url_aggregator>& r = get_instance(result);
215215
if (!r) {
216216
return 0;

tests/ada_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ TEST(ada_c, setters) {
115115
ada_set_protocol(url, "wss", 3);
116116
ASSERT_EQ(convert_string(ada_get_protocol(url)), "wss:");
117117

118-
ASSERT_EQ(ada_get_url_host_type(url), 0);
118+
ASSERT_EQ(ada_get_host_type(url), 0);
119119

120120
ada_free(url);
121121

0 commit comments

Comments
 (0)