summaryrefslogtreecommitdiffstats
path: root/aclk/schema-wrappers/capability.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aclk/schema-wrappers/capability.cc')
-rw-r--r--aclk/schema-wrappers/capability.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/aclk/schema-wrappers/capability.cc b/aclk/schema-wrappers/capability.cc
new file mode 100644
index 000000000..769806f90
--- /dev/null
+++ b/aclk/schema-wrappers/capability.cc
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#include "proto/aclk/v1/lib.pb.h"
+
+#include "capability.h"
+
+void capability_set(aclk_lib::v1::Capability *proto_capa, struct capability *c_capa) {
+ proto_capa->set_name(c_capa->name);
+ proto_capa->set_enabled(c_capa->enabled);
+ proto_capa->set_version(c_capa->version);
+}