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 <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2024-07-29 14:28:00 -04:00 committed by mergify[bot]
parent 9ade640fd0
commit 498214f580
2 changed files with 8 additions and 4 deletions

View File

@ -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_",

View File

@ -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)