@@ -27,6 +27,11 @@ fn main() {
2727 . header ( format ! ( "{}/include/swiftnav/troposphere.h" , dst. display( ) ) )
2828 . header ( format ! ( "{}/include/swiftnav/ephemeris.h" , dst. display( ) ) )
2929 . 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+ ) )
3035 // Tell cargo to invalidate the built crate whenever any of the
3136 // included header files changed.
3237 . parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks ) )
@@ -83,6 +88,20 @@ fn main() {
8388 . whitelist_function ( "decode_bds_d1_ephemeris" )
8489 . whitelist_function ( "decode_gal_ephemeris" )
8590 . 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" )
86105 // Finish the builder and generate the bindings.
87106 . generate ( )
88107 // Unwrap the Result and panic on failure.
0 commit comments