Add whitelist for bindgen
							parent
							
								
									b5b053dad2
								
							
						
					
					
						commit
						1cc3be26dd
					
				| 
						 | 
					@ -13,6 +13,11 @@ fn main() {
 | 
				
			||||||
        .use_core()
 | 
					        .use_core()
 | 
				
			||||||
        // Use libc
 | 
					        // Use libc
 | 
				
			||||||
        .ctypes_prefix("libc")
 | 
					        .ctypes_prefix("libc")
 | 
				
			||||||
 | 
					        // Whitelist
 | 
				
			||||||
 | 
					        .whitelist_type(".*vlc.*")
 | 
				
			||||||
 | 
					        .whitelist_function(".*vlc.*")
 | 
				
			||||||
 | 
					        .whitelist_var(".*vlc.*")
 | 
				
			||||||
 | 
					        .whitelist_function("vsnprintf")
 | 
				
			||||||
        .parse_callbacks(Box::new(bindgen::CargoCallbacks))
 | 
					        .parse_callbacks(Box::new(bindgen::CargoCallbacks))
 | 
				
			||||||
        .generate()
 | 
					        .generate()
 | 
				
			||||||
        .expect("Unable to generate bindings");
 | 
					        .expect("Unable to generate bindings");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue