Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (38 sloc) 1.36 KB
---
GENERATOR:
PackageName: vorbis
PackageDescription: "Package vorbis provides Go bindings for OggVorbis implementation by the Xiph.Org Foundation"
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
PkgConfigOpts: [ogg, vorbis]
Includes: ["ogg/ogg.h", "vorbis/codec.h"]
PARSER:
IncludePaths: ["/usr/include"]
SourcesPaths: ["vorbis/ogg/ogg.h", "vorbis/vorbis/codec.h"]
TRANSLATOR:
ConstRules:
defines: eval
PtrTips:
function:
- {target: "vorbis_synthesis_pcmout$", tips: [ref,arr]}
- {target: ^vorbis_, tips: [ref,ref,ref]}
- {target: ^ogg_, self: arr, tips: [ref,ref]}
Rules:
global:
- {transform: lower}
- {action: accept, from: "^vorbis_"}
- {action: accept, from: "^ogg_"}
- {action: replace, from: "^vorbis_", to: _}
- {transform: export}
const:
- {action: accept, from: "^OV_"}
- {action: replace, from: "^ov_", to: _}
type:
- {action: replace, from: "_t$"}
private:
- {transform: unexport}
post-global:
- {action: doc, from: "^ogg_u?int[0-9]+_t"} # types like ogg_uint32_t
- {action: doc, from: "^ogg_", to: "https://xiph.org/ogg/doc/libogg/$name.html"}
- {action: doc, from: "^vorbis_", to: "https://xiph.org/vorbis/doc/libvorbis/$name.html"}
- {action: replace, from: _$}
- {load: snakecase}