Perform searching using root-specific provider. The provider may need the listfile
| 101 | // Perform searching using root-specific provider. |
| 102 | // The provider may need the listfile |
| 103 | static bool DoStorageSearch_RootFile(TCascSearch * pSearch, PCASC_FIND_DATA pFindData) |
| 104 | { |
| 105 | PCASC_CKEY_ENTRY pCKeyEntry; |
| 106 | TCascStorage * hs = pSearch->hs; |
| 107 | |
| 108 | // Reset the search structure |
| 109 | ResetFindData(pFindData); |
| 110 | |
| 111 | // Enumerate over all files |
| 112 | for(;;) |
| 113 | { |
| 114 | // Attempt to find (the next) file from the root handler |
| 115 | pCKeyEntry = hs->pRootHandler->Search(pSearch, pFindData); |
| 116 | if(pCKeyEntry == NULL) |
| 117 | return false; |
| 118 | |
| 119 | // The entry is expected to be referenced by the root directory |
| 120 | assert(pCKeyEntry->RefCount != 0); |
| 121 | |
| 122 | // Copy the CKey entry to the find data and return it |
| 123 | return CopyCKeyEntryToFindData(pFindData, pCKeyEntry); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | static bool DoStorageSearch_CKey(TCascSearch * pSearch, PCASC_FIND_DATA pFindData) |
| 128 | { |
no test coverage detected