Revert "Add "opaque interface declarations""

This reverts commit 396e0a3567.
This commit is contained in:
Jonas Platte
2023-05-03 10:25:38 +02:00
committed by Jonas Platte
parent 37be24ee19
commit dddec7e7ee
4 changed files with 3 additions and 4 deletions

View File

@@ -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;

View File

@@ -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>,

View File

@@ -51,6 +51,7 @@ impl NotificationItem {
}
#[allow(dead_code)]
#[derive(uniffi::Object)]
pub struct NotificationService {
base_path: String,
user_id: String,

View File

@@ -95,6 +95,7 @@ fn span_or_event_enabled(callsite: &'static DefaultCallsite) -> bool {
}
}
#[derive(uniffi::Object)]
pub struct Span(tracing::Span);
#[uniffi::export]