I'm trying to use "sqlite3_open_v2" with a custom VFS (file system), and pass a pointer "void *user_data" to the sqlite3_open_v2 function, so it gets passed down to the "sqlite3_vfs::xOpen" However there's no option for that, so how to do that?
The reason is that for opening files in the custom callback, I need to use a pointer to some helper "cipher" class object, to allow my own encryption/decryption. However xOpen accepts only "const char *zName". I have one custom global VFS, and I want to use different ciphers / user data for each database I use. What would solve the problem: add new "void *user_data" parameter to functions "sqlite3_open_v2", and "sqlite3_vfs::xOpen". Thanks, Greg _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users