summaryrefslogtreecommitdiff
path: root/mkvlib/c/exports.go
diff options
context:
space:
mode:
Diffstat (limited to 'mkvlib/c/exports.go')
-rw-r--r--mkvlib/c/exports.go10
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)
}