I have an external C++ library that I want to use from rust. For this I use bindgen to map the function calls. The C++ function I want to use fills a (C++) string vector and has the signature:
short REQ_MList(std::vector<std::string> *list)
Bindgen generates the rust function:
pub fn REQ_MList(list: *mut std_vector) -> ::std::os::raw::c_short
Now I don't know how to handle this data type std_vector.
I tried to generate the std_vector struct and provide a raw pointer to it, which compiles but (of course) fails.
let mut list=std_vector{_Mypair: (0)};
let list_ptr:*mut std_vector= &mut list;
REQ_MList(listptr);
What is the correct way to handle this C++ data type. I haven't found any documentation about this topic.