Skip to content

Commit df1cf94

Browse files
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>
1 parent 5538847 commit df1cf94

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

contrib/implements/internal/implements/cast.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ var (
1616
`
1717
radosCStub = `
1818
#include "rados/librados.h"
19+
`
20+
radosStriperCStub = `
21+
#include "rados/librados.h"
22+
#include "radosstriper/libradosstriper.h"
1923
`
2024
rbdCStub = `
2125
#include "rbd/librbd.h"
@@ -44,9 +48,10 @@ var (
4448
#define __linux__ 1
4549
`
4650
stubs = map[string]string{
47-
"cephfs": cephfsCStub,
48-
"rados": radosCStub,
49-
"rbd": rbdCStub,
51+
"cephfs": cephfsCStub,
52+
"rados": radosCStub,
53+
"rados/striper": radosStriperCStub,
54+
"rbd": rbdCStub,
5055
}
5156
funcPrefix = map[string]string{
5257
"cephfs": "ceph_",

contrib/implements/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func main() {
104104
source, pkg := splitPkg(pkgref)
105105
checkCLang := false
106106
switch pkg {
107-
case "cephfs", "rados", "rbd":
107+
case "cephfs", "rados", "rbd", "rados/striper":
108108
checkCLang = true
109109
if verbose {
110110
logger.Printf("Processing package (with C): %s\n", pkg)

0 commit comments

Comments
 (0)