diff options
| author | b5f0d6c3 <[email protected]> | 2022-03-19 10:57:08 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-03-19 10:57:08 +0800 |
| commit | be6042c27702e250f56ced87ca35aca9afc8bc29 (patch) | |
| tree | 77c393b24b81206865576908ee7547c2ce87ee81 /mkvlib/c/sdk.cs | |
| parent | b26503c9d804a86e5a697bc25bc1ff65238cdf06 (diff) | |
update sdks
Diffstat (limited to 'mkvlib/c/sdk.cs')
| -rw-r--r-- | mkvlib/c/sdk.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mkvlib/c/sdk.cs b/mkvlib/c/sdk.cs index 7a4f4c0..18aff8c 100644 --- a/mkvlib/c/sdk.cs +++ b/mkvlib/c/sdk.cs @@ -37,6 +37,12 @@ public static class mkvlib [DllImport("mkvlib.so")] static extern bool MakeMKVs(IntPtr dir, IntPtr data, IntPtr output, IntPtr slang, IntPtr stitle, logCallback lcb); + [DllImport("mkvlib.so")] + static extern bool A2P(bool a2p, bool apc, int pr, int pf); + + [DllImport("mkvlib.so")] + static extern bool GetFontsList(IntPtr dir, logCallback lcb); + #endregion public static bool InitInstance(Action<string> lcb) @@ -98,6 +104,17 @@ public static class mkvlib return MakeMKVs(cs(dir), cs(data), cs(output), cs(slang), cs(stitle), _lcb(lcb)); } + public static void A2P(bool a2p, bool apc, int pr, int pf) + { + A2P(a2p, apc, pr, pf); + } + + public string[] GetFontsList(string dir, Action<string> lcb) + { + string result = css(GetFontsList(cs(dir), _lcb(lcb))); + return JsonSerializer.Deserialize<string[]>(result); + } + delegate void logCallback(IntPtr ptr); static logCallback _lcb(Action<string> lcb) |
