File tree 4 files changed +9
-1
lines changed
4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ cef_cache/
13
13
hs_err_pid * .log
14
14
15
15
# Do not commit CEF binaries
16
- /java-cef /org.eclipse.set.browser.cef /cef
16
+ /java /org.eclipse.set.browser.cef.win32 /cef
17
17
/cef
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ fn gen_cef(cef_path: std::path::Display) {
110
110
dst. write ( new_data. as_bytes ( ) ) . expect ( "Cannot write mod.rs" ) ;
111
111
}
112
112
113
+ #[ repr( C ) ]
113
114
#[ derive( Debug ) ]
114
115
struct ToJavaCallbacks ( ) ;
115
116
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ use std::ffi::{CStr, CString};
17
17
use std:: mem;
18
18
use std:: os:: raw:: c_int;
19
19
20
+ #[ repr( C ) ]
20
21
pub struct Base { }
21
22
22
23
impl Base {
@@ -31,6 +32,7 @@ impl Base {
31
32
}
32
33
}
33
34
35
+ #[ repr( C ) ]
34
36
pub struct App {
35
37
cef : chromium:: cef:: _cef_app_t ,
36
38
render_process_handler : RenderProcessHandler ,
@@ -76,10 +78,12 @@ impl App {
76
78
}
77
79
}
78
80
81
+ #[ repr( C ) ]
79
82
#[ derive( Clone , Copy ) ]
80
83
struct Browser ( * mut chromium:: cef:: _cef_browser_t ) ;
81
84
unsafe impl Send for Browser { }
82
85
86
+ #[ repr( C ) ]
83
87
struct RenderProcessHandler {
84
88
cef : chromium:: cef:: _cef_render_process_handler_t ,
85
89
function_handler : Option < V8Handler > ,
@@ -307,6 +311,7 @@ unsafe fn convert_type(
307
311
}
308
312
}
309
313
314
+ #[ repr( C ) ]
310
315
struct V8Handler {
311
316
cef : chromium:: cef:: _cef_v8handler_t ,
312
317
browser : * mut chromium:: cef:: _cef_browser_t ,
Original file line number Diff line number Diff line change @@ -40,12 +40,14 @@ impl ReturnType {
40
40
}
41
41
}
42
42
43
+ #[ repr( C ) ]
43
44
#[ derive( Debug , PartialEq , Eq ) ]
44
45
pub struct ReturnSt {
45
46
pub kind : ReturnType ,
46
47
pub str_value : CString ,
47
48
}
48
49
50
+ #[ repr( C ) ]
49
51
#[ derive( Debug , PartialEq , Eq ) ]
50
52
struct ReturnMsg {
51
53
kind : ReturnType ,
You can’t perform that action at this time.
0 commit comments