summaryrefslogtreecommitdiff
path: root/profcollectd/libprofcollectd/bindings/libbase/properties.hpp
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/bindings/libbase/properties.hpp
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/bindings/libbase/properties.hpp')
-rw-r--r--profcollectd/libprofcollectd/bindings/libbase/properties.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/profcollectd/libprofcollectd/bindings/libbase/properties.hpp b/profcollectd/libprofcollectd/bindings/libbase/properties.hpp
index d6785a28..c8ef1f64 100644
--- a/profcollectd/libprofcollectd/bindings/libbase/properties.hpp
+++ b/profcollectd/libprofcollectd/bindings/libbase/properties.hpp
@@ -14,6 +14,9 @@
* limitations under the License.
*/
-// C declaration for bindgen.
-const char* GetProperty(const char*, const char*);
-void SetProperty(const char*, const char*);
+#pragma once
+
+#include "rust/cxx.h"
+
+rust::String GetProperty(rust::Str, rust::Str);
+void SetProperty(rust::Str, rust::Str);