summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-09-23 09:36:47 -0400
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-10-01 13:39:10 +0330
commit6f394d9ee29e8e81107dee91744b63a4d1216cc1 (patch)
treecb2830afe61bb2bea82fff6daa2ae1c7fb7ece1e /Userland/Services
parentbe6b3710c838f836544857092b407c3e374eb23c (diff)
downloadserenity-6f394d9ee29e8e81107dee91744b63a4d1216cc1.zip
LibConfig+ConfigServer: Make remove_key() synchronous
Previously, when removing keys, the config utility terminated its connection before changes could be synced.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/ConfigServer/ConfigServer.ipc2
-rw-r--r--Userland/Services/ConfigServer/ConnectionFromClient.cpp2
-rw-r--r--Userland/Services/ConfigServer/ConnectionFromClient.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Services/ConfigServer/ConfigServer.ipc b/Userland/Services/ConfigServer/ConfigServer.ipc
index 2860c875a6..491e24101d 100644
--- a/Userland/Services/ConfigServer/ConfigServer.ipc
+++ b/Userland/Services/ConfigServer/ConfigServer.ipc
@@ -14,5 +14,5 @@ endpoint ConfigServer
write_string_value(String domain, String group, String key, String value) => ()
write_i32_value(String domain, String group, String key, i32 value) => ()
write_bool_value(String domain, String group, String key, bool value) => ()
- remove_key(String domain, String group, String key) =|
+ remove_key_entry(String domain, String group, String key) => ()
}
diff --git a/Userland/Services/ConfigServer/ConnectionFromClient.cpp b/Userland/Services/ConfigServer/ConnectionFromClient.cpp
index fbf86aae33..22bf2370cf 100644
--- a/Userland/Services/ConfigServer/ConnectionFromClient.cpp
+++ b/Userland/Services/ConfigServer/ConnectionFromClient.cpp
@@ -249,7 +249,7 @@ void ConnectionFromClient::write_bool_value(String const& domain, String const&
});
}
-void ConnectionFromClient::remove_key(String const& domain, String const& group, String const& key)
+void ConnectionFromClient::remove_key_entry(String const& domain, String const& group, String const& key)
{
if (!validate_access(domain, group, key))
return;
diff --git a/Userland/Services/ConfigServer/ConnectionFromClient.h b/Userland/Services/ConfigServer/ConnectionFromClient.h
index 439dc08436..a5ce7e1f4a 100644
--- a/Userland/Services/ConfigServer/ConnectionFromClient.h
+++ b/Userland/Services/ConfigServer/ConnectionFromClient.h
@@ -35,7 +35,7 @@ private:
virtual void write_string_value([[maybe_unused]] String const& domain, [[maybe_unused]] String const& group, [[maybe_unused]] String const& key, [[maybe_unused]] String const& value) override;
virtual void write_i32_value([[maybe_unused]] String const& domain, [[maybe_unused]] String const& group, [[maybe_unused]] String const& key, [[maybe_unused]] i32 value) override;
virtual void write_bool_value([[maybe_unused]] String const& domain, [[maybe_unused]] String const& group, [[maybe_unused]] String const& key, [[maybe_unused]] bool value) override;
- virtual void remove_key([[maybe_unused]] String const& domain, [[maybe_unused]] String const& group, [[maybe_unused]] String const& key) override;
+ virtual void remove_key_entry([[maybe_unused]] String const& domain, [[maybe_unused]] String const& group, [[maybe_unused]] String const& key) override;
bool validate_access(String const& domain, String const& group, String const& key);
void sync_dirty_domains_to_disk();