ソースを参照

implement wrapper method for dc_accounts_get_all()

cyberta 4 年 前
コミット
78c6a12329
1 ファイル変更4 行追加0 行削除
  1. 4 0
      DcCore/DcCore/DC/Wrapper.swift

+ 4 - 0
DcCore/DcCore/DC/Wrapper.swift

@@ -30,6 +30,10 @@ public class DcAccounts {
         return Int(dc_accounts_migrate_account(accountsPointer, dbLocation))
     }
 
+    public func getAll() -> [Int] {
+        let cAccounts = dc_accounts_get_all(accountsPointer)
+        return DcUtils.copyAndFreeArray(inputArray: cAccounts)
+    }
 }
 
 public class DcContext {