summaryrefslogtreecommitdiff
path: root/profcollectd/libprofcollectd/config.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-07-12 14:18:53 -0700
committerJoel Galenson <jgalenson@google.com>2021-07-14 16:29:21 +0000
commit29b4145bff8bc65f46c3a830f0f6cb5c6422ff80 (patch)
tree267b4b32eec1a9c1ee6b136866a9352f2d782157 /profcollectd/libprofcollectd/config.rs
parentc783e4235cb0e2a39d40e17ac93c3d2be6dae309 (diff)
downloadextras-29b4145bff8bc65f46c3a830f0f6cb5c6422ff80.tar.gz
Migrate profcollectd's libbase bindings from bindgen to cxx.
This should both simplify the code and fix some errors in the existing implementation. Bug: 182498247 Test: Build Change-Id: Id3f7f518922e745715aef1286be684bd3e9c16fe Merged-In: Id3f7f518922e745715aef1286be684bd3e9c16fe (cherry picked from commit 93dd9936881424d2ed4f061bd7d06f8d74163010)
Diffstat (limited to 'profcollectd/libprofcollectd/config.rs')
-rw-r--r--profcollectd/libprofcollectd/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/profcollectd/libprofcollectd/config.rs b/profcollectd/libprofcollectd/config.rs
index d2850e82..c3ab45cf 100644
--- a/profcollectd/libprofcollectd/config.rs
+++ b/profcollectd/libprofcollectd/config.rs
@@ -119,7 +119,7 @@ where
T::Err: Error + Send + Sync + 'static,
{
let default_value = default_value.to_string();
- let value = profcollect_libbase_rust::get_property(&key, &default_value);
+ let value = profcollect_libbase_rust::GetProperty(&key, &default_value);
Ok(T::from_str(&value)?)
}
@@ -128,7 +128,7 @@ where
T: ToString,
{
let value = value.to_string();
- profcollect_libbase_rust::set_property(&key, &value);
+ profcollect_libbase_rust::SetProperty(&key, &value);
}
fn generate_random_node_id() -> MacAddr6 {