112a9d9c8Sopenharmony_ci# Customizing the Generated Bindings 212a9d9c8Sopenharmony_ci 312a9d9c8Sopenharmony_ciThe translation of classes, structs, enums, and typedefs can be adjusted in a 412a9d9c8Sopenharmony_cifew ways: 512a9d9c8Sopenharmony_ci 612a9d9c8Sopenharmony_ci1. By using the `bindgen::Builder`'s configuration methods, when using `bindgen` 712a9d9c8Sopenharmony_ci as a library. 812a9d9c8Sopenharmony_ci 912a9d9c8Sopenharmony_ci2. By passing extra flags and options to the `bindgen` executable. 1012a9d9c8Sopenharmony_ci 1112a9d9c8Sopenharmony_ci3. By adding an annotation comment to the C/C++ source code. Annotations are 1212a9d9c8Sopenharmony_ci specially formatted HTML tags inside doxygen style comments: 1312a9d9c8Sopenharmony_ci 1412a9d9c8Sopenharmony_ci * For single line comments: 1512a9d9c8Sopenharmony_ci ```c 1612a9d9c8Sopenharmony_ci /// <div rustbindgen></div> 1712a9d9c8Sopenharmony_ci ``` 1812a9d9c8Sopenharmony_ci 1912a9d9c8Sopenharmony_ci * For multi-line comments: 2012a9d9c8Sopenharmony_ci ```c 2112a9d9c8Sopenharmony_ci /** 2212a9d9c8Sopenharmony_ci * <div rustbindgen></div> 2312a9d9c8Sopenharmony_ci */ 2412a9d9c8Sopenharmony_ci ``` 2512a9d9c8Sopenharmony_ci 2612a9d9c8Sopenharmony_ciWe'll leave the nitty-gritty details to 2712a9d9c8Sopenharmony_cithe [docs.rs API reference](https://docs.rs/bindgen) and `bindgen --help`, but 2812a9d9c8Sopenharmony_ciprovide higher level concept documentation here. 29