Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + func GenerateCapiPackage(manifest *Manifest, decls *Declarations, outDir string) error + func GenerateSpec(moduleName string, sourcePackage string, decls *Declarations) *specmodel.Spec + func WriteSpecYAML(spec *specmodel.Spec, path string) error + type ASTNode struct + CC string + CastKind string + CompleteDefinition bool + Decl *ASTNode + FixedUnderlyingType *TypeInfo + ID string + Inner []ASTNode + IsImplicit bool + IsReferenced bool + Kind string + Loc *Location + MangledName string + Name string + OwnedTagDecl *ASTNode + Range *Range + StorageClass string + TagUsed string + Type *TypeInfo + Value string + ValueCategory string + func ParseClangAST(jsonData []byte) (*ASTNode, error) + type Declarations struct + Enums []EnumInfo + Functions []FuncDecl + Structs []StructInfo + Typedefs []TypedefInfo + func ApplyRules(decls *Declarations, rules []Rule) *Declarations + func ExtractDeclarations(root *ASTNode, targetHeaders []string) *Declarations + type EnumConstant struct + Name string + Value int64 + type EnumInfo struct + Constants []EnumConstant + FixedType string + Name string + TypedefName string + type FieldInfo struct + FuncParams []ParamInfo + FuncReturn string + IsFuncPtr bool + Name string + Type string + type FlagGroup struct + Flags []string + Name string + type FuncDecl struct + Name string + Params []ParamInfo + ReturnType string + type GeneratorConfig struct + FlagGroups []FlagGroup + Includes []string + PackageDescription string + PackageLicense string + PackageName string + type IncluRef struct + File string + type Location struct + Col int + ExpansionLoc *Location + File string + IncludedFrom *IncluRef + Line int + Offset int + SpellingLoc *Location + TokLen int + type Manifest struct + Generator GeneratorConfig + Parser ParserConfig + Translator TranslatorConfig + func ParseManifest(path string) (*Manifest, error) + type ParamInfo struct + Name string + Type string + type ParserConfig struct + IncludePaths []string + SourcesPaths []string + type Range struct + Begin *Location + End *Location + type Rule struct + Action string + From string + To string + type StructInfo struct + Fields []FieldInfo + IsComplete bool + Name string + type TranslatorConfig struct + ConstRules map[string]string + Rules map[string][]Rule + type TypeInfo struct + DesugaredQualType string + QualType string + TypeAliasDeclID string + type TypedefInfo struct + DesugaredType string + FuncParams []ParamInfo + FuncReturn string + IsEnumTypedef bool + IsFuncPtr bool + IsOpaqueStruct bool + Name string + UnderlyingType string