@@ -308,7 +308,7 @@ impl<'a> NbglHomeAndSettings<'a> {
308
308
nbContents : if self . nb_settings > 0 { 1 } else { 0 } ,
309
309
} ;
310
310
311
- match ledger_secure_sdk_sys :: ux_sync_homeAndSettings (
311
+ match ux_sync_homeAndSettings (
312
312
info_contents[ 0 ] ,
313
313
& icon as * const nbgl_icon_details_t ,
314
314
core:: ptr:: null ( ) ,
@@ -317,7 +317,7 @@ impl<'a> NbglHomeAndSettings<'a> {
317
317
& info_list as * const nbgl_contentInfoList_t ,
318
318
core:: ptr:: null ( ) ,
319
319
) {
320
- ledger_secure_sdk_sys :: UX_SYNC_RET_APDU_RECEIVED => {
320
+ UX_SYNC_RET_APDU_RECEIVED => {
321
321
if let Some ( comm) = COMM_REF . as_mut ( ) {
322
322
if let Some ( value) = comm. check_event ( ) {
323
323
return value;
@@ -452,13 +452,13 @@ impl<'a> NbglReview<'a> {
452
452
453
453
if self . blind {
454
454
if !show_blind_warning ( ) {
455
- ledger_secure_sdk_sys :: ux_sync_reviewStatus ( self . tx_type . to_message ( false ) ) ;
455
+ ux_sync_reviewStatus ( self . tx_type . to_message ( false ) ) ;
456
456
return false ;
457
457
}
458
458
}
459
459
460
460
// Show the review on the device.
461
- let sync_ret = ledger_secure_sdk_sys :: ux_sync_review (
461
+ let sync_ret = ux_sync_review (
462
462
self . tx_type . to_c_type ( self . blind , false ) ,
463
463
& tag_value_list as * const nbgl_contentTagValueList_t ,
464
464
& icon as * const nbgl_icon_details_t ,
@@ -469,12 +469,12 @@ impl<'a> NbglReview<'a> {
469
469
470
470
// Return true if the user approved the transaction, false otherwise.
471
471
match sync_ret {
472
- ledger_secure_sdk_sys :: UX_SYNC_RET_APPROVED => {
473
- ledger_secure_sdk_sys :: ux_sync_reviewStatus ( self . tx_type . to_message ( true ) ) ;
472
+ UX_SYNC_RET_APPROVED => {
473
+ ux_sync_reviewStatus ( self . tx_type . to_message ( true ) ) ;
474
474
return true ;
475
475
}
476
476
_ => {
477
- ledger_secure_sdk_sys :: ux_sync_reviewStatus ( self . tx_type . to_message ( false ) ) ;
477
+ ux_sync_reviewStatus ( self . tx_type . to_message ( false ) ) ;
478
478
return false ;
479
479
}
480
480
}
@@ -907,18 +907,12 @@ impl NbglGenericReview {
907
907
908
908
// Return true if the user approved the transaction, false otherwise.
909
909
match sync_ret {
910
- ledger_secure_sdk_sys:: UX_SYNC_RET_APPROVED => {
911
- ledger_secure_sdk_sys:: ux_sync_status (
912
- succeed_cstring. as_ptr ( ) as * const c_char ,
913
- true ,
914
- ) ;
910
+ UX_SYNC_RET_APPROVED => {
911
+ ux_sync_status ( succeed_cstring. as_ptr ( ) as * const c_char , true ) ;
915
912
return true ;
916
913
}
917
914
_ => {
918
- ledger_secure_sdk_sys:: ux_sync_status (
919
- rejected_cstring. as_ptr ( ) as * const c_char ,
920
- false ,
921
- ) ;
915
+ ux_sync_status ( rejected_cstring. as_ptr ( ) as * const c_char , false ) ;
922
916
return false ;
923
917
}
924
918
}
@@ -1045,7 +1039,7 @@ impl NbglStreamingReview {
1045
1039
1046
1040
// Return true if the user approved the transaction, false otherwise.
1047
1041
match sync_ret {
1048
- ledger_secure_sdk_sys :: UX_SYNC_RET_APPROVED => {
1042
+ UX_SYNC_RET_APPROVED => {
1049
1043
ux_sync_reviewStatus ( self . tx_type . to_message ( true ) ) ;
1050
1044
return true ;
1051
1045
}
@@ -1107,12 +1101,12 @@ impl<'a> NbglAddressReview<'a> {
1107
1101
1108
1102
// Return true if the user approved the address, false otherwise.
1109
1103
match sync_ret {
1110
- ledger_secure_sdk_sys :: UX_SYNC_RET_APPROVED => {
1111
- ledger_secure_sdk_sys :: ux_sync_reviewStatus ( STATUS_TYPE_ADDRESS_VERIFIED ) ;
1104
+ UX_SYNC_RET_APPROVED => {
1105
+ ux_sync_reviewStatus ( STATUS_TYPE_ADDRESS_VERIFIED ) ;
1112
1106
return true ;
1113
1107
}
1114
- ledger_secure_sdk_sys :: UX_SYNC_RET_REJECTED => {
1115
- ledger_secure_sdk_sys :: ux_sync_reviewStatus ( STATUS_TYPE_ADDRESS_REJECTED ) ;
1108
+ UX_SYNC_RET_REJECTED => {
1109
+ ux_sync_reviewStatus ( STATUS_TYPE_ADDRESS_REJECTED ) ;
1116
1110
return false ;
1117
1111
}
1118
1112
_ => {
@@ -1123,7 +1117,7 @@ impl<'a> NbglAddressReview<'a> {
1123
1117
}
1124
1118
}
1125
1119
1126
- /// A wrapper around the synchronous NBGL ux_sync_status C API binding.
1120
+ /// A wrapper around the synchronous NBGL ux_sync_status C API binding.
1127
1121
/// Draws a generic choice page, described in a centered info (with configurable icon),
1128
1122
/// thanks to a button and a footer at the bottom of the page.
1129
1123
pub struct NbglChoice < ' a > {
@@ -1189,18 +1183,15 @@ impl<'a> NbglChoice<'a> {
1189
1183
1190
1184
// Return true if the user approved the transaction, false otherwise.
1191
1185
match sync_ret {
1192
- ledger_secure_sdk_sys :: UX_SYNC_RET_APPROVED => {
1186
+ UX_SYNC_RET_APPROVED => {
1193
1187
if let Some ( text) = self . confirmed_text {
1194
- ledger_secure_sdk_sys :: ux_sync_status ( text. as_ptr ( ) as * const c_char , true ) ;
1188
+ ux_sync_status ( text. as_ptr ( ) as * const c_char , true ) ;
1195
1189
}
1196
1190
return true ;
1197
1191
}
1198
1192
_ => {
1199
1193
if let Some ( text) = self . cancelled_text {
1200
- ledger_secure_sdk_sys:: ux_sync_status (
1201
- text. as_ptr ( ) as * const c_char ,
1202
- false ,
1203
- ) ;
1194
+ ux_sync_status ( text. as_ptr ( ) as * const c_char , false ) ;
1204
1195
}
1205
1196
return false ;
1206
1197
}
0 commit comments