sqlite3_user_data

void *sqlite3_user_data(sqlite3_context*);

The arg member to the qdb_function struct used to register user functions is available to the implementation of the function using this call.