[][src]Macro sunshine_identity_ffi::impl_ffi

macro_rules! impl_ffi {
    (client: $client: expr, runtime: $runtime: ty) => { ... };
    (runtime: $runtime: ty, client: $client: expr) => { ... };
}

Generate the FFI for the provided runtime

Example

use test_client::Runtime;
use sunshine_identity_ffi::impl_ffi;
use sunshine_identity_ffi::client::Error;

async fn setup_client(root: &str) -> Result<Client, Error> {
    // Client Setup here..
}
impl_ffi!(runtime: Runtime, client: setup_client);