This commit is contained in:
Alessio Placitelli 2019-11-11 09:33:38 +01:00
Родитель 48a48ac4eb
Коммит fa052a5f14
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -122,6 +122,9 @@ impl TryFrom<&FfiConfiguration<'_>> for glean_core::Configuration {
}
}
/// # Safety
///
/// A valid and non-null configuration object is required for this function.
#[no_mangle]
pub unsafe extern "C" fn glean_initialize(cfg: *const FfiConfiguration) -> u64 {
assert!(!cfg.is_null());
@ -138,6 +141,9 @@ pub unsafe extern "C" fn glean_initialize(cfg: *const FfiConfiguration) -> u64 {
})
}
/// # Safety
///
/// A valid and non-null configuration object is required for this function.
#[no_mangle]
pub unsafe extern "C" fn glean_initialize_migration(
cfg: *const FfiConfiguration,