--------------------------------------------------------- PPic_CloseDatabase Purpose: Closes down the picture database. ---------------------------------------------------------
| 184 | // Closes down the picture database. |
| 185 | // --------------------------------------------------------- |
| 186 | void PPic_CloseDatabase(void) { |
| 187 | if (!PilotPic_init) |
| 188 | return; |
| 189 | |
| 190 | // close up the database |
| 191 | PPic_FreeDatabase(); |
| 192 | |
| 193 | // close up files |
| 194 | if (PilotPic_database_index_handle) { |
| 195 | cfclose(PilotPic_database_index_handle); |
| 196 | PilotPic_database_index_handle = NULL; |
| 197 | } |
| 198 | |
| 199 | if (PilotPic_database_hog_handle) { |
| 200 | cf_CloseLibrary(PilotPic_database_hog_handle); |
| 201 | PilotPic_database_hog_handle = 0; |
| 202 | } |
| 203 | |
| 204 | PilotPic_init = false; |
| 205 | } |
| 206 | |
| 207 | // --------------------------------------------------------- |
| 208 | // PPic_QueryPilot |
nothing calls this directly
no test coverage detected