mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-05 06:28:20 -04:00
Revert "Add "opaque interface declarations""
This reverts commit 396e0a3567.
This commit is contained in:
committed by
Jonas Platte
parent
37be24ee19
commit
dddec7e7ee
@@ -8,10 +8,6 @@ callback interface NotificationDelegate {
|
||||
void did_receive_notification(NotificationItem notification);
|
||||
};
|
||||
|
||||
interface AuthenticationService {};
|
||||
interface Span {};
|
||||
interface NotificationService {};
|
||||
|
||||
dictionary NotificationItem {
|
||||
TimelineEvent event;
|
||||
string room_id;
|
||||
|
||||
@@ -11,6 +11,7 @@ use zeroize::Zeroize;
|
||||
use super::{client::Client, client_builder::ClientBuilder, RUNTIME};
|
||||
use crate::error::ClientError;
|
||||
|
||||
#[derive(uniffi::Object)]
|
||||
pub struct AuthenticationService {
|
||||
base_path: String,
|
||||
passphrase: Option<String>,
|
||||
|
||||
@@ -51,6 +51,7 @@ impl NotificationItem {
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(uniffi::Object)]
|
||||
pub struct NotificationService {
|
||||
base_path: String,
|
||||
user_id: String,
|
||||
|
||||
@@ -95,6 +95,7 @@ fn span_or_event_enabled(callsite: &'static DefaultCallsite) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(uniffi::Object)]
|
||||
pub struct Span(tracing::Span);
|
||||
|
||||
#[uniffi::export]
|
||||
|
||||
Reference in New Issue
Block a user