1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use super::{uint_t, ATR, ER, ER_ID, ID, MPF_T, TMO};
#[cfg(any(
feature = "asp3",
feature = "fmp3",
feature = "solid_asp3",
feature = "solid_fmp3"
))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(C)]
pub struct T_RMPF {
pub wtskid: ID,
pub fblkcnt: uint_t,
}
#[cfg(any(
all(feature = "asp3", feature = "dcre"),
all(feature = "solid_asp3", feature = "dcre"),
all(feature = "solid_fmp3", feature = "dcre")
))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(C)]
pub struct T_CMPF {
pub mpfatr: ATR,
pub blkcnt: uint_t,
pub blksz: uint_t,
pub mpf: *mut MPF_T,
pub mpfmb: *mut u8,
}
#[cfg(any(
feature = "asp3",
feature = "fmp3",
feature = "solid_asp3",
feature = "solid_fmp3"
))]
extern "C" {
pub fn get_mpf(mpfid: ID, p_blk: *mut *mut u8) -> ER;
pub fn pget_mpf(mpfid: ID, p_blk: *mut *mut u8) -> ER;
pub fn tget_mpf(mpfid: ID, p_blk: *mut *mut u8, tmout: TMO) -> ER;
pub fn rel_mpf(mpfid: ID, blk: *mut u8) -> ER;
pub fn ini_mpf(mpfid: ID) -> ER;
pub fn ref_mpf(mpfid: ID, pk_rmpf: *mut T_RMPF) -> ER;
}
#[cfg(any(
all(feature = "asp3", feature = "dcre"),
all(feature = "solid_asp3", feature = "dcre"),
all(feature = "solid_fmp3", feature = "dcre")
))]
extern "C" {
pub fn acre_mpf(pk_cmpf: *const T_CMPF) -> ER_ID;
pub fn del_mpf(mpfid: ID) -> ER;
}