File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -556,6 +556,8 @@ pub struct Function {
556
556
pub get_property : Option < String > ,
557
557
pub set_property : Option < String > ,
558
558
pub finish_func : Option < String > ,
559
+ pub async_func : Option < String > ,
560
+ pub sync_func : Option < String > ,
559
561
}
560
562
561
563
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -598,6 +598,8 @@ impl Library {
598
598
get_property : None ,
599
599
set_property : None ,
600
600
finish_func : None ,
601
+ async_func : None ,
602
+ sync_func : None ,
601
603
} )
602
604
} else {
603
605
Err ( parser. fail ( "Missing <return-value> element" ) )
@@ -1031,6 +1033,8 @@ impl Library {
1031
1033
)
1032
1034
} )
1033
1035
} ) ;
1036
+ let async_func = elem. attr ( "async-func" ) . map ( ToString :: to_string) ;
1037
+ let sync_func = elem. attr ( "sync-func" ) . map ( ToString :: to_string) ;
1034
1038
1035
1039
let mut params = Vec :: new ( ) ;
1036
1040
let mut ret = None ;
@@ -1123,6 +1127,8 @@ impl Library {
1123
1127
get_property,
1124
1128
set_property,
1125
1129
finish_func,
1130
+ async_func,
1131
+ sync_func,
1126
1132
} )
1127
1133
} else {
1128
1134
Err ( parser. fail_with_position (
You can’t perform that action at this time.
0 commit comments