Skip to content

Commit

Permalink
implements: add rados/striper (sub)package support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
phlogistonjohn committed Aug 2, 2024
1 parent a48bd72 commit 3218fd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions contrib/implements/internal/implements/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ var (
`
radosCStub = `
#include "rados/librados.h"
`
radosStriperCStub = `
#include "radosstriper/libradosstriper.h"
`
rbdCStub = `
#include "rbd/librbd.h"
Expand Down Expand Up @@ -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_",
Expand Down
2 changes: 1 addition & 1 deletion contrib/implements/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3218fd2

Please sign in to comment.