| 45 | } |
| 46 | |
| 47 | void db_disconnect(DB_CONNECTION* connection) |
| 48 | { |
| 49 | // reinterpret_cast<> is used to cast between pointers/references of |
| 50 | // unrelated types (such as void* and Database*) |
| 51 | reinterpret_cast<Database*>(connection)->disconnect(); |
| 52 | } |
| 53 | |
| 54 | DB_QUERY_RESULT* db_query(DB_CONNECTION* connection, const char* query) |
| 55 | { |