-
Notifications
You must be signed in to change notification settings - Fork 0
/
opus.yml
53 lines (51 loc) · 1.68 KB
/
opus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
GENERATOR:
PackageName: opus
PackageDescription: "Package opus provides Go bindings for Opus implementation by the Xiph.Org Foundation"
PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS."
PkgConfigOpts: [opus]
Includes: ["opus.h"]
PARSER:
IncludePaths:
[
"/usr/include",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
]
SourcesPaths: ["opus.h"]
TRANSLATOR:
ConstRules:
defines: expand
TypeTips:
function:
- {
target: "^opus_",
self: plain,
tips: [plain, plain, plain, plain, plain],
}
PtrTips:
function:
- { target: "_encoder_create$", tips: [0, 0, 0, ref] }
- { target: "_decoder_create$", tips: [0, 0, ref] }
- { target: "_multistream_packet_unpad$", tips: [0, size, 0] }
- { target: "_multistream_packet_pad$", tips: [0, size, size, 0] }
- { target: "_packet_unpad$", tips: [0, size] }
- { target: "_packet_pad$", tips: [0, size, size] }
- { target: "_pcm_soft_clip$", tips: [arr, 0, 0, arr] }
- { target: ^opus_, tips: [ref] }
Rules:
global:
- { transform: lower }
- { action: accept, from: "(?i)^opus" }
- { action: replace, from: "(?i)^opus" }
- { transform: export }
function:
- { action: ignore, from: "_encoder_ctl" } # variadic
- { action: ignore, from: "_decoder_ctl" } # variadic
- { action: ignore, from: "_packet_parse" } # internal
type:
- { action: replace, from: "_t$" }
private:
- { transform: unexport }
post-global:
- { action: replace, from: _$ }
- { load: snakecase }