Эх сурвалжийг харах

implement wrapper method for dc_accounts_get_all()

cyberta 4 жил өмнө
parent
commit
78c6a12329

+ 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 {