diff options
| author | b5f0d6c3 <[email protected]> | 2022-03-19 10:37:57 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-03-19 10:37:57 +0800 |
| commit | b26503c9d804a86e5a697bc25bc1ff65238cdf06 (patch) | |
| tree | 7ef05275f106fbf9e446845c4d94a930de60d9f4 /mkvlib/c/exports.go | |
| parent | 42b21320e957d42f7cda17d71cfc6c0414518f4a (diff) | |
update README.md
Diffstat (limited to 'mkvlib/c/exports.go')
| -rw-r--r-- | mkvlib/c/exports.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkvlib/c/exports.go b/mkvlib/c/exports.go index 2ad4471..c79431e 100644 --- a/mkvlib/c/exports.go +++ b/mkvlib/c/exports.go @@ -131,6 +131,16 @@ func A2P(a2p, apc bool, pr, pf int) { getter.GetProcessorInstance().A2P(a2p, apc, pr, pf) } +//export GetFontsList +func GetFontsList(dir *C.char, lcb C.logCallback) *C.char { + if !checkInstance() { + return cs("") + } + list := getter.GetProcessorInstance().GetFontsList(gs(dir), _lcb(lcb)) + data, _ := json.Marshal(list) + return cs(string(data)) +} + func cs(gs string) *C.char { return C.CString(gs) } |
