From 498214f580f87e865bd282bc68cc313b99d66d91 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 29 Jul 2024 14:28:00 -0400 Subject: [PATCH] implements: add rados/striper (sub)package support Add rados/striper to the implements tool. It needs to be recognized as a new C-API wrapping library. Signed-off-by: John Mulligan --- contrib/implements/internal/implements/cast.go | 10 +++++++--- contrib/implements/main.go | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/contrib/implements/internal/implements/cast.go b/contrib/implements/internal/implements/cast.go index 36bec42..c33e6a7 100644 --- a/contrib/implements/internal/implements/cast.go +++ b/contrib/implements/internal/implements/cast.go @@ -16,6 +16,9 @@ var ( ` radosCStub = ` #include "rados/librados.h" +` + radosStriperCStub = ` +#include "radosstriper/libradosstriper.h" ` rbdCStub = ` #include "rbd/librbd.h" @@ -44,9 +47,10 @@ var ( #define __linux__ 1 ` stubs = map[string]string{ - "cephfs": cephfsCStub, - "rados": radosCStub, - "rbd": rbdCStub, + "cephfs": cephfsCStub, + "rados": radosCStub, + "rados/striper": radosStriperCStub, + "rbd": rbdCStub, } funcPrefix = map[string]string{ "cephfs": "ceph_", diff --git a/contrib/implements/main.go b/contrib/implements/main.go index 18bcd78..6886699 100644 --- a/contrib/implements/main.go +++ b/contrib/implements/main.go @@ -104,7 +104,7 @@ func main() { source, pkg := splitPkg(pkgref) checkCLang := false switch pkg { - case "cephfs", "rados", "rbd": + case "cephfs", "rados", "rbd", "rados/striper": checkCLang = true if verbose { logger.Printf("Processing package (with C): %s\n", pkg)