From 7d0b58a97249c80d42ef4a94b4083bc34b8548d8 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Mon, 10 Jun 2024 19:02:12 +0200 Subject: [PATCH] Replace app_config_get_sync_client_config with _set_sync_client_config --- src/realm.h | 2 +- src/realm/object-store/c_api/app.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/realm.h b/src/realm.h index 68e39b80111..3cbfcea35c8 100644 --- a/src/realm.h +++ b/src/realm.h @@ -3018,7 +3018,7 @@ RLM_API void realm_app_config_set_metadata_mode(realm_app_config_t*, RLM_API void realm_app_config_set_metadata_encryption_key(realm_app_config_t*, const uint8_t[64]) RLM_API_NOEXCEPT; RLM_API void realm_app_config_set_security_access_group(realm_app_config_t*, const char*) RLM_API_NOEXCEPT; -RLM_API realm_sync_client_config_t* realm_app_config_get_sync_client_config(realm_app_config_t*) RLM_API_NOEXCEPT; +RLM_API void realm_app_config_set_sync_client_config(realm_app_config_t* config, realm_sync_client_config_t* sync_client_config) RLM_API_NOEXCEPT; /** * Get an existing @a realm_app_credentials_t and return it's json representation diff --git a/src/realm/object-store/c_api/app.cpp b/src/realm/object-store/c_api/app.cpp index d07be1d7124..bb61f7acddd 100644 --- a/src/realm/object-store/c_api/app.cpp +++ b/src/realm/object-store/c_api/app.cpp @@ -272,6 +272,11 @@ RLM_API void realm_app_config_set_security_access_group(realm_app_config_t* conf config->security_access_group = group; } +RLM_API void realm_app_config_set_sync_client_config(realm_app_config_t* config, realm_sync_client_config_t* sync_client_config) noexcept +{ + config->sync_client_config = *sync_client_config; +} + RLM_API const char* realm_app_credentials_serialize_as_json(realm_app_credentials_t* app_credentials) noexcept { return wrap_err([&] {