Hi all, SQLITE is defining the following C function : int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int n, void(*)(void*));
How to include it in an extern block ? I have tried this fn sqlite3_bind_text(pStmt : *mut(), iCol : c_int, value : *c_char, n : c_int, f : *proc(*())) -> c_int; (a pointer to a function taking a pointer as an argument) i have also tried fn sqlite3_bind_text(pStmt : *mut(), iCol : c_int, value : *c_char, n : c_int, f : *|*()|) -> c_int; In SQLITE, this argument can takes value SQLITE_STATIC or SQLITE_TRANSIENT typedef void (*sqlite3_destructor_type)(void*); #define SQLITE_STATIC ((sqlite3_destructor_type)0) #define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1) for example, how to set this argument to SQLITE_STATIC in Rust ? Thanks -- Christophe http://chris-pe.github.io/Rustic/ _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
