2024-02-05 09:28:56 +00:00
|
|
|
//Automatically generated by rifgen
|
|
|
|
use crate::*;
|
|
|
|
use jni_sys::*;
|
2024-02-05 14:28:45 +00:00
|
|
|
foreign_enum!(
|
|
|
|
enum PopequerAdapterErr {
|
|
|
|
ReadDb = PopequerAdapterErr::ReadDb,
|
|
|
|
Indexing = PopequerAdapterErr::Indexing,
|
|
|
|
View = PopequerAdapterErr::View,
|
|
|
|
}
|
|
|
|
);
|
2024-02-05 09:28:56 +00:00
|
|
|
foreign_class!(
|
|
|
|
class Foo {
|
|
|
|
self_type Foo;
|
|
|
|
constructor Foo::new(val : i32)->Foo;
|
|
|
|
fn Foo::f(& self , a : i32 , b : i32)->i32; alias f;
|
|
|
|
fn Foo::get_data(& self)->i32; alias getData;
|
|
|
|
# [doc = "Custom doc comment"]
|
|
|
|
fn Foo::set_field(& mut self , v : i32); alias setField;
|
|
|
|
}
|
|
|
|
);
|
2024-02-05 14:28:45 +00:00
|
|
|
foreign_class!(
|
|
|
|
class PopequerAdapter {
|
|
|
|
self_type PopequerAdapter;
|
|
|
|
constructor PopequerAdapter::new(notebook_fs_path : String)->PopequerAdapter;
|
|
|
|
fn PopequerAdapter::index(& self)->String; alias index;
|
|
|
|
fn PopequerAdapter::upcoming_events(& self)->String; alias upcomingEvents;
|
|
|
|
}
|
|
|
|
);
|