@@ -44,89 +44,89 @@ fn main() {
44
44
// Tell cargo to invalidate the built crate whenever any of the
45
45
// included header files changed.
46
46
. parse_callbacks ( Box :: new ( bindgen:: CargoCallbacks ) )
47
- . blacklist_type ( "u8" )
48
- . blacklist_type ( "u16" )
49
- . blacklist_type ( "u32" )
50
- . whitelist_type ( "gps_time_t" )
51
- . whitelist_function ( "gpsdifftime" )
52
- . whitelist_function ( "gps_time_valid" )
53
- . whitelist_function ( "add_secs" )
54
- . whitelist_var ( "FLOAT_EQUALITY_EPS" )
55
- . whitelist_var ( "MINUTE_SECS" )
56
- . whitelist_var ( "HOUR_SECS" )
57
- . whitelist_var ( "DAY_SECS" )
58
- . whitelist_var ( "WEEK_SECS" )
59
- . whitelist_type ( "constellation_t" )
60
- . whitelist_type ( "code_t" )
61
- . whitelist_type ( "gnss_signal_t" )
62
- . whitelist_function ( "is_gps" )
63
- . whitelist_function ( "is_sbas" )
64
- . whitelist_function ( "is_glo" )
65
- . whitelist_function ( "is_bds2" )
66
- . whitelist_function ( "is_gal" )
67
- . whitelist_function ( "is_qzss" )
68
- . whitelist_function ( "sid_to_constellation" )
69
- . whitelist_function ( "sid_valid" )
70
- . whitelist_function ( "code_to_constellation" )
71
- . whitelist_function ( "constellation_to_sat_count" )
72
- . whitelist_function ( "constellation_to_string" )
73
- . whitelist_function ( "code_to_sig_count" )
74
- . whitelist_function ( "code_to_chip_count" )
75
- . whitelist_function ( "code_to_chip_rate" )
76
- . whitelist_function ( "sid_to_carr_freq" )
77
- . whitelist_function ( "code_string_to_enum" )
78
- . whitelist_function ( "code_to_string" )
79
- . whitelist_var ( "NUM_SATS_GPS" )
80
- . whitelist_var ( "NUM_SATS_SBAS" )
81
- . whitelist_var ( "NUM_SATS_GLO" )
82
- . whitelist_var ( "NUM_SATS_BDS" )
83
- . whitelist_var ( "NUM_SATS_GAL" )
84
- . whitelist_var ( "NUM_SATS_QZS" )
85
- . whitelist_var ( "GPS_FIRST_PRN" )
86
- . whitelist_var ( "SBAS_FIRST_PRN" )
87
- . whitelist_var ( "GLO_FIRST_PRN" )
88
- . whitelist_var ( "BDS_FIRST_PRN" )
89
- . whitelist_var ( "GAL_FIRST_PRN" )
90
- . whitelist_var ( "QZS_FIRST_PRN" )
91
- . whitelist_function ( "llhrad2deg" )
92
- . whitelist_function ( "llhdeg2rad" )
93
- . whitelist_function ( "wgsllh2ecef" )
94
- . whitelist_function ( "wgsecef2llh" )
95
- . whitelist_function ( "wgsecef2azel" )
96
- . whitelist_type ( "ionosphere_t" )
97
- . whitelist_function ( "calc_ionosphere" )
98
- . whitelist_function ( "decode_iono_parameters" )
99
- . whitelist_function ( "calc_troposphere" )
100
- . whitelist_type ( "ephemeris_t" )
101
- . whitelist_function ( "calc_sat_state" )
102
- . whitelist_function ( "calc_sat_az_el" )
103
- . whitelist_function ( "calc_sat_doppler" )
104
- . whitelist_function ( "get_ephemeris_status_t" )
105
- . whitelist_function ( "ephemeris_valid_detailed" )
106
- . whitelist_function ( "ephemeris_valid" )
107
- . whitelist_function ( "ephemeris_equal" )
108
- . whitelist_function ( "ephemeris_healthy" )
109
- . whitelist_function ( "get_ephemeris_iod_or_iodcrc" )
110
- . whitelist_function ( "decode_ephemeris" )
111
- . whitelist_function ( "decode_bds_d1_ephemeris" )
112
- . whitelist_function ( "decode_gal_ephemeris" )
113
- . whitelist_function ( "crc24q" )
114
- . whitelist_type ( "measurement_std_t" )
115
- . whitelist_function ( "nav_meas_flags_valid" )
116
- . whitelist_function ( "pseudorange_valid" )
117
- . whitelist_function ( "encode_lock_time" )
118
- . whitelist_function ( "decode_lock_time" )
119
- . whitelist_var ( "NAV_MEAS_FLAG_CODE_VALID" )
120
- . whitelist_var ( "NAV_MEAS_FLAG_MEAS_DOPPLER_VALID" )
121
- . whitelist_var ( "NAV_MEAS_FLAG_CN0_VALID" )
122
- . whitelist_function ( "sid_set_init" )
123
- . whitelist_function ( "sid_set_get_sat_count" )
124
- . whitelist_function ( "sid_set_get_sig_count" )
125
- . whitelist_function ( "sid_set_contains" )
126
- . whitelist_function ( "calc_PVT" )
127
- . whitelist_var ( "pvt_err_msg" )
128
- . whitelist_function ( "correct_iono" )
129
- . whitelist_function ( "correct_tropo" )
47
+ . blocklist_type ( "u8" )
48
+ . blocklist_type ( "u16" )
49
+ . blocklist_type ( "u32" )
50
+ . allowlist_type ( "gps_time_t" )
51
+ . allowlist_function ( "gpsdifftime" )
52
+ . allowlist_function ( "gps_time_valid" )
53
+ . allowlist_function ( "add_secs" )
54
+ . allowlist_var ( "FLOAT_EQUALITY_EPS" )
55
+ . allowlist_var ( "MINUTE_SECS" )
56
+ . allowlist_var ( "HOUR_SECS" )
57
+ . allowlist_var ( "DAY_SECS" )
58
+ . allowlist_var ( "WEEK_SECS" )
59
+ . allowlist_type ( "constellation_t" )
60
+ . allowlist_type ( "code_t" )
61
+ . allowlist_type ( "gnss_signal_t" )
62
+ . allowlist_function ( "is_gps" )
63
+ . allowlist_function ( "is_sbas" )
64
+ . allowlist_function ( "is_glo" )
65
+ . allowlist_function ( "is_bds2" )
66
+ . allowlist_function ( "is_gal" )
67
+ . allowlist_function ( "is_qzss" )
68
+ . allowlist_function ( "sid_to_constellation" )
69
+ . allowlist_function ( "sid_valid" )
70
+ . allowlist_function ( "code_to_constellation" )
71
+ . allowlist_function ( "constellation_to_sat_count" )
72
+ . allowlist_function ( "constellation_to_string" )
73
+ . allowlist_function ( "code_to_sig_count" )
74
+ . allowlist_function ( "code_to_chip_count" )
75
+ . allowlist_function ( "code_to_chip_rate" )
76
+ . allowlist_function ( "sid_to_carr_freq" )
77
+ . allowlist_function ( "code_string_to_enum" )
78
+ . allowlist_function ( "code_to_string" )
79
+ . allowlist_var ( "NUM_SATS_GPS" )
80
+ . allowlist_var ( "NUM_SATS_SBAS" )
81
+ . allowlist_var ( "NUM_SATS_GLO" )
82
+ . allowlist_var ( "NUM_SATS_BDS" )
83
+ . allowlist_var ( "NUM_SATS_GAL" )
84
+ . allowlist_var ( "NUM_SATS_QZS" )
85
+ . allowlist_var ( "GPS_FIRST_PRN" )
86
+ . allowlist_var ( "SBAS_FIRST_PRN" )
87
+ . allowlist_var ( "GLO_FIRST_PRN" )
88
+ . allowlist_var ( "BDS_FIRST_PRN" )
89
+ . allowlist_var ( "GAL_FIRST_PRN" )
90
+ . allowlist_var ( "QZS_FIRST_PRN" )
91
+ . allowlist_function ( "llhrad2deg" )
92
+ . allowlist_function ( "llhdeg2rad" )
93
+ . allowlist_function ( "wgsllh2ecef" )
94
+ . allowlist_function ( "wgsecef2llh" )
95
+ . allowlist_function ( "wgsecef2azel" )
96
+ . allowlist_type ( "ionosphere_t" )
97
+ . allowlist_function ( "calc_ionosphere" )
98
+ . allowlist_function ( "decode_iono_parameters" )
99
+ . allowlist_function ( "calc_troposphere" )
100
+ . allowlist_type ( "ephemeris_t" )
101
+ . allowlist_function ( "calc_sat_state" )
102
+ . allowlist_function ( "calc_sat_az_el" )
103
+ . allowlist_function ( "calc_sat_doppler" )
104
+ . allowlist_function ( "get_ephemeris_status_t" )
105
+ . allowlist_function ( "ephemeris_valid_detailed" )
106
+ . allowlist_function ( "ephemeris_valid" )
107
+ . allowlist_function ( "ephemeris_equal" )
108
+ . allowlist_function ( "ephemeris_healthy" )
109
+ . allowlist_function ( "get_ephemeris_iod_or_iodcrc" )
110
+ . allowlist_function ( "decode_ephemeris" )
111
+ . allowlist_function ( "decode_bds_d1_ephemeris" )
112
+ . allowlist_function ( "decode_gal_ephemeris" )
113
+ . allowlist_function ( "crc24q" )
114
+ . allowlist_type ( "measurement_std_t" )
115
+ . allowlist_function ( "nav_meas_flags_valid" )
116
+ . allowlist_function ( "pseudorange_valid" )
117
+ . allowlist_function ( "encode_lock_time" )
118
+ . allowlist_function ( "decode_lock_time" )
119
+ . allowlist_var ( "NAV_MEAS_FLAG_CODE_VALID" )
120
+ . allowlist_var ( "NAV_MEAS_FLAG_MEAS_DOPPLER_VALID" )
121
+ . allowlist_var ( "NAV_MEAS_FLAG_CN0_VALID" )
122
+ . allowlist_function ( "sid_set_init" )
123
+ . allowlist_function ( "sid_set_get_sat_count" )
124
+ . allowlist_function ( "sid_set_get_sig_count" )
125
+ . allowlist_function ( "sid_set_contains" )
126
+ . allowlist_function ( "calc_PVT" )
127
+ . allowlist_var ( "pvt_err_msg" )
128
+ . allowlist_function ( "correct_iono" )
129
+ . allowlist_function ( "correct_tropo" )
130
130
// Finish the builder and generate the bindings.
131
131
. generate ( )
132
132
// Unwrap the Result and panic on failure.
0 commit comments