@@ -27,6 +27,11 @@ fn main() {
27
27
. header ( format ! ( "{}/include/swiftnav/troposphere.h" , dst. display( ) ) )
28
28
. header ( format ! ( "{}/include/swiftnav/ephemeris.h" , dst. display( ) ) )
29
29
. header ( format ! ( "{}/include/swiftnav/edc.h" , dst. display( ) ) )
30
+ . header ( format ! ( "{}/include/swiftnav/nav_meas.h" , dst. display( ) ) )
31
+ . header ( format ! (
32
+ "{}/include/swiftnav/single_epoch_solver.h" ,
33
+ dst. display( )
34
+ ) )
30
35
// Tell cargo to invalidate the built crate whenever any of the
31
36
// included header files changed.
32
37
. parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks ) )
@@ -83,6 +88,20 @@ fn main() {
83
88
. whitelist_function ( "decode_bds_d1_ephemeris" )
84
89
. whitelist_function ( "decode_gal_ephemeris" )
85
90
. whitelist_function ( "crc24q" )
91
+ . whitelist_type ( "measurement_std_t" )
92
+ . whitelist_function ( "nav_meas_flags_valid" )
93
+ . whitelist_function ( "pseudorange_valid" )
94
+ . whitelist_function ( "encode_lock_time" )
95
+ . whitelist_function ( "decode_lock_time" )
96
+ . whitelist_var ( "NAV_MEAS_FLAG_CODE_VALID" )
97
+ . whitelist_var ( "NAV_MEAS_FLAG_MEAS_DOPPLER_VALID" )
98
+ . whitelist_var ( "NAV_MEAS_FLAG_CN0_VALID" )
99
+ . whitelist_function ( "sid_set_init" )
100
+ . whitelist_function ( "sid_set_get_sat_count" )
101
+ . whitelist_function ( "sid_set_get_sig_count" )
102
+ . whitelist_function ( "sid_set_contains" )
103
+ . whitelist_function ( "calc_PVT" )
104
+ . whitelist_var ( "pvt_err_msg" )
86
105
// Finish the builder and generate the bindings.
87
106
. generate ( )
88
107
// Unwrap the Result and panic on failure.
0 commit comments