2
2
// from gir-files (https://github.com/gtk-rs/gir-files)
3
3
// DO NOT EDIT
4
4
5
- #[ cfg( any( feature = "v2_34" , feature = "dox" ) ) ]
6
5
use Bytes ;
7
6
use ChecksumType ;
8
7
use Error ;
@@ -56,11 +55,6 @@ pub fn assertion_message_expr<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&
56
55
}
57
56
}
58
57
59
- //#[deprecated]
60
- //pub fn atexit<P: FnOnce() + Send + Sync + 'static>(func: P) {
61
- // unsafe { TODO: call ffi::g_atexit() }
62
- //}
63
-
64
58
pub fn base64_decode ( text : & str ) -> Vec < u8 > {
65
59
unsafe {
66
60
let mut out_len = mem:: uninitialized ( ) ;
@@ -92,13 +86,6 @@ pub fn base64_encode(data: &[u8]) -> Option<GString> {
92
86
// unsafe { TODO: call ffi::g_base64_encode_step() }
93
87
//}
94
88
95
- #[ deprecated]
96
- pub fn basename < P : AsRef < std:: path:: Path > > ( file_name : P ) -> Option < std:: path:: PathBuf > {
97
- unsafe {
98
- from_glib_none ( ffi:: g_basename ( file_name. as_ref ( ) . to_glib_none ( ) . 0 ) )
99
- }
100
- }
101
-
102
89
pub fn bit_nth_lsf ( mask : libc:: c_ulong , nth_bit : i32 ) -> i32 {
103
90
unsafe {
104
91
ffi:: g_bit_nth_lsf ( mask, nth_bit)
@@ -174,12 +161,10 @@ pub fn clear_error() -> Result<(), Error> {
174
161
// unsafe { TODO: call ffi::g_clear_handle_id() }
175
162
//}
176
163
177
- //#[cfg(any(feature = "v2_34", feature = "dox"))]
178
164
//pub fn clear_pointer(pp: /*Unimplemented*/Fundamental: Pointer) {
179
165
// unsafe { TODO: call ffi::g_clear_pointer() }
180
166
//}
181
167
182
- #[ cfg( any( feature = "v2_34" , feature = "dox" ) ) ]
183
168
pub fn compute_checksum_for_bytes ( checksum_type : ChecksumType , data : & Bytes ) -> Option < GString > {
184
169
unsafe {
185
170
from_glib_full ( ffi:: g_compute_checksum_for_bytes ( checksum_type. to_glib ( ) , data. to_glib_none ( ) . 0 ) )
@@ -243,7 +228,6 @@ pub fn compute_hmac_for_string(digest_type: ChecksumType, key: &[u8], str: &str)
243
228
// unsafe { TODO: call ffi::g_datalist_get_flags() }
244
229
//}
245
230
246
- //#[cfg(any(feature = "v2_34", feature = "dox"))]
247
231
//pub fn datalist_id_dup_data(datalist: /*Ignored*/&mut Data, key_id: Quark, dup_func: /*Unimplemented*/FnMut(/*Unimplemented*/Fundamental: Pointer) -> /*Unimplemented*/Fundamental: Pointer, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> /*Unimplemented*/Option<Fundamental: Pointer> {
248
232
// unsafe { TODO: call ffi::g_datalist_id_dup_data() }
249
233
//}
@@ -256,7 +240,6 @@ pub fn compute_hmac_for_string(digest_type: ChecksumType, key: &[u8], str: &str)
256
240
// unsafe { TODO: call ffi::g_datalist_id_remove_no_notify() }
257
241
//}
258
242
259
- //#[cfg(any(feature = "v2_34", feature = "dox"))]
260
243
//pub fn datalist_id_replace_data(datalist: /*Ignored*/&mut Data, key_id: Quark, oldval: /*Unimplemented*/Option<Fundamental: Pointer>, newval: /*Unimplemented*/Option<Fundamental: Pointer>) -> Option<Fn() + 'static> {
261
244
// unsafe { TODO: call ffi::g_datalist_id_replace_data() }
262
245
//}
@@ -412,13 +395,6 @@ pub fn format_size(size: u64) -> Option<GString> {
412
395
}
413
396
}
414
397
415
- #[ deprecated]
416
- pub fn format_size_for_display ( size : i64 ) -> Option < GString > {
417
- unsafe {
418
- from_glib_full ( ffi:: g_format_size_for_display ( size) )
419
- }
420
- }
421
-
422
398
pub fn format_size_full ( size : u64 , flags : FormatSizeFlags ) -> Option < GString > {
423
399
unsafe {
424
400
from_glib_full ( ffi:: g_format_size_full ( size, flags. to_glib ( ) ) )
@@ -494,7 +470,6 @@ pub fn get_monotonic_time() -> i64 {
494
470
}
495
471
}
496
472
497
- #[ cfg( any( feature = "v2_36" , feature = "dox" ) ) ]
498
473
pub fn get_num_processors ( ) -> u32 {
499
474
unsafe {
500
475
ffi:: g_get_num_processors ( )
@@ -1055,7 +1030,6 @@ pub fn spaced_primes_closest(num: u32) -> u32 {
1055
1030
// unsafe { TODO: call ffi::g_spawn_async_with_pipes() }
1056
1031
//}
1057
1032
1058
- #[ cfg( any( feature = "v2_34" , feature = "dox" ) ) ]
1059
1033
pub fn spawn_check_exit_status ( exit_status : i32 ) -> Result < ( ) , Error > {
1060
1034
unsafe {
1061
1035
let mut error = ptr:: null_mut ( ) ;
@@ -1095,7 +1069,6 @@ pub fn stpcpy(dest: &str, src: &str) -> Option<GString> {
1095
1069
// unsafe { TODO: call ffi::g_test_add_data_func() }
1096
1070
//}
1097
1071
1098
- //#[cfg(any(feature = "v2_34", feature = "dox"))]
1099
1072
//pub fn test_add_data_func_full<P: Fn() + Send + Sync + 'static>(testpath: &str, test_data: /*Unimplemented*/Option<Fundamental: Pointer>, test_func: P) {
1100
1073
// unsafe { TODO: call ffi::g_test_add_data_func_full() }
1101
1074
//}
@@ -1126,7 +1099,6 @@ pub fn test_bug_base(uri_pattern: &str) {
1126
1099
}
1127
1100
}
1128
1101
1129
- //#[cfg(any(feature = "v2_38", feature = "dox"))]
1130
1102
//pub fn test_build_filename(file_type: /*Ignored*/TestFileType, first_path: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option<GString> {
1131
1103
// unsafe { TODO: call ffi::g_test_build_filename() }
1132
1104
//}
@@ -1139,7 +1111,6 @@ pub fn test_bug_base(uri_pattern: &str) {
1139
1111
// unsafe { TODO: call ffi::g_test_create_suite() }
1140
1112
//}
1141
1113
1142
- //#[cfg(any(feature = "v2_34", feature = "dox"))]
1143
1114
//pub fn test_expect_message<'a, P: Into<Option<&'a str>>>(log_domain: P, log_level: /*Ignored*/LogLevelFlags, pattern: &str) {
1144
1115
// unsafe { TODO: call ffi::g_test_expect_message() }
1145
1116
//}
@@ -1150,19 +1121,16 @@ pub fn test_fail() {
1150
1121
}
1151
1122
}
1152
1123
1153
- #[ cfg( any( feature = "v2_38" , feature = "dox" ) ) ]
1154
1124
pub fn test_failed ( ) -> bool {
1155
1125
unsafe {
1156
1126
from_glib ( ffi:: g_test_failed ( ) )
1157
1127
}
1158
1128
}
1159
1129
1160
- //#[cfg(any(feature = "v2_38", feature = "dox"))]
1161
1130
//pub fn test_get_dir(file_type: /*Ignored*/TestFileType) -> Option<std::path::PathBuf> {
1162
1131
// unsafe { TODO: call ffi::g_test_get_dir() }
1163
1132
//}
1164
1133
1165
- //#[cfg(any(feature = "v2_38", feature = "dox"))]
1166
1134
//pub fn test_get_filename(file_type: /*Ignored*/TestFileType, first_path: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option<GString> {
1167
1135
// unsafe { TODO: call ffi::g_test_get_filename() }
1168
1136
//}
@@ -1171,7 +1139,6 @@ pub fn test_failed() -> bool {
1171
1139
// unsafe { TODO: call ffi::g_test_get_root() }
1172
1140
//}
1173
1141
1174
- #[ cfg( any( feature = "v2_38" , feature = "dox" ) ) ]
1175
1142
pub fn test_incomplete < ' a , P : Into < Option < & ' a str > > > ( msg : P ) {
1176
1143
let msg = msg. into ( ) ;
1177
1144
unsafe {
@@ -1245,22 +1212,19 @@ pub fn test_run() -> i32 {
1245
1212
// unsafe { TODO: call ffi::g_test_run_suite() }
1246
1213
//}
1247
1214
1248
- #[ cfg( any( feature = "v2_38" , feature = "dox" ) ) ]
1249
1215
pub fn test_set_nonfatal_assertions ( ) {
1250
1216
unsafe {
1251
1217
ffi:: g_test_set_nonfatal_assertions ( ) ;
1252
1218
}
1253
1219
}
1254
1220
1255
- #[ cfg( any( feature = "v2_38" , feature = "dox" ) ) ]
1256
1221
pub fn test_skip < ' a , P : Into < Option < & ' a str > > > ( msg : P ) {
1257
1222
let msg = msg. into ( ) ;
1258
1223
unsafe {
1259
1224
ffi:: g_test_skip ( msg. to_glib_none ( ) . 0 ) ;
1260
1225
}
1261
1226
}
1262
1227
1263
- #[ cfg( any( feature = "v2_38" , feature = "dox" ) ) ]
1264
1228
pub fn test_subprocess ( ) -> bool {
1265
1229
unsafe {
1266
1230
from_glib ( ffi:: g_test_subprocess ( ) )
@@ -1307,7 +1271,6 @@ pub fn test_trap_reached_timeout() -> bool {
1307
1271
}
1308
1272
}
1309
1273
1310
- //#[cfg(any(feature = "v2_38", feature = "dox"))]
1311
1274
//pub fn test_trap_subprocess<'a, P: Into<Option<&'a str>>>(test_path: P, usec_timeout: u64, test_flags: /*Ignored*/TestSubprocessFlags) {
1312
1275
// unsafe { TODO: call ffi::g_test_trap_subprocess() }
1313
1276
//}
0 commit comments