Browse Source

add imex function to DcContext

cyberta 5 years ago
parent
commit
e08c09323f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      deltachat-ios/DC/Wrapper.swift

+ 4 - 0
deltachat-ios/DC/Wrapper.swift

@@ -208,6 +208,10 @@ class DcContext {
         guard let dcProviderPointer = dc_provider_new_from_email(contextPointer, addr) else { return nil }
         return DcProvider(dcProviderPointer)
     }
+
+    func imex(what: Int32, directory: String) {
+        dc_imex(contextPointer, what, directory, nil)
+    }
 }
 
 class DcConfig {