mirror of
https://github.com/ceph/go-ceph
synced 2025-01-18 04:00:51 +00:00
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:
parent
9ade640fd0
commit
498214f580
@ -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_",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user