Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align renamed API calls #221

Merged
merged 3 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
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
4 changes: 2 additions & 2 deletions include/zenoh/api/config.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Config : public Owned<::z_owned_config_t> {
/// @return true if the parameter was inserted, false otherwise.
/// @note zenoh-c only.
void insert_json(const std::string& key, const std::string& value, ZResult* err = nullptr) {
sashacmc marked this conversation as resolved.
Show resolved Hide resolved
__ZENOH_RESULT_CHECK(::zc_config_insert_json(interop::as_loaned_c_ptr(*this), key.c_str(), value.c_str()), err,
__ZENOH_RESULT_CHECK(::zc_config_insert_json5(interop::as_loaned_c_ptr(*this), key.c_str(), value.c_str()), err,
std::string("Failed to insert '")
.append(value)
.append("' for the key '")
Expand Down Expand Up @@ -149,4 +149,4 @@ class Config : public Owned<::z_owned_config_t> {
}
#endif
};
} // namespace zenoh
} // namespace zenoh
4 changes: 2 additions & 2 deletions include/zenoh/api/hello.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Hello : public Owned<::z_owned_hello_t> {
::z_hello_locators(interop::as_loaned_c_ptr(*this), &out);
auto out_loaned = ::z_loan(out);
#else
auto out_loaned = ::z_hello_locators(interop::as_loaned_c_ptr(*this));
auto out_loaned = ::zp_hello_locators(interop::as_loaned_c_ptr(*this));
sashacmc marked this conversation as resolved.
Show resolved Hide resolved
#endif
std::vector<std::string_view> locators(::z_string_array_len(out_loaned));
for (size_t i = 0; i < ::z_string_array_len(out_loaned); i++) {
Expand Down Expand Up @@ -83,4 +83,4 @@ class Hello : public Owned<::z_owned_hello_t> {
/// @brief Move assignment operator.
Hello& operator=(Hello&& other) = default;
};
} // namespace zenoh
} // namespace zenoh
Loading