mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
add json api to cffi and expose it in dc node
This commit is contained in:
@@ -39,6 +39,10 @@ impl CommandApi {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_from_cffi(accounts: Arc<RwLock<Accounts>>) -> Self {
|
||||
CommandApi { accounts }
|
||||
}
|
||||
|
||||
async fn get_context(&self, id: u32) -> Result<deltachat::context::Context> {
|
||||
let sc = self
|
||||
.accounts
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
pub mod api;
|
||||
pub use api::events;
|
||||
|
||||
pub use yerpc;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::api::{Accounts, CommandApi};
|
||||
|
||||
Reference in New Issue
Block a user