Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + func Convert(data []byte, opts ConvertOptions) (*specmodel.Spec, error) + func ConvertFile(path string, opts ConvertOptions) (*specmodel.Spec, error) + func ExtractMacros(ndkSysroot string, targetHeaders []string) (map[string]int64, error) + func Invoke(opts InvokeOptions) ([]byte, error) + type ConvertOptions struct + Module string + NDKHeaderDirs []string + NDKSysroot string + Rules []Rule + SourcePackage string + TargetHeaders []string + type Declaration struct + BitAlignment int + BitSize int + Fields []Field + ID int + Inline bool + Location string + NS int + Name string + Parameters []Parameter + ReturnType *TypeRef + Tag string + Type *TypeRef + Variadic bool + type Field struct + BitAlignment int + BitOffset int + BitSize int + Name string + Tag string + Type *TypeRef + Value uint64 + type InvokeOptions struct + C2FFIBin string + Includes []string + NDKPath string + NDKSysroot string + Target string + type Manifest struct + Generator struct{ ... } + Translator struct{ ... } + type Parameter struct + Name string + Tag string + Type TypeRef + type Rule struct + Action string + From string + type TypeRef struct + BitAlignment int + BitSize int + Fields []Field + ID int + Name string + Size int + Tag string + Type *TypeRef