#undef HASHTYPE
#undef HTKEYTYPE
#undef HTDATATYPE
-#define HASHTYPE rpmalProvidesHash
+#define HASHTYPE rpmalDepHash
#define HTKEYTYPE rpmsid
#define HTDATATYPE struct availableIndexEntry_s
#include "lib/rpmhash.H"
struct rpmal_s {
rpmstrPool pool; /*!< String pool */
availablePackage list; /*!< Set of packages. */
- rpmalProvidesHash providesHash;
+ rpmalDepHash providesHash;
rpmalFileHash fileHash;
int delta; /*!< Delta for pkg list reallocation. */
int size; /*!< No. of pkgs in list. */
*/
static void rpmalFreeIndex(rpmal al)
{
- al->providesHash = rpmalProvidesHashFree(al->providesHash);
+ al->providesHash = rpmalDepHashFree(al->providesHash);
al->fileHash = rpmalFileHashFree(al->fileHash);
}
continue;
indexEntry.entryIx = i;;
- rpmalProvidesHashAddEntry(al->providesHash,
+ rpmalDepHashAddEntry(al->providesHash,
rpmdsNIdIndex(provides, i), indexEntry);
}
}
providesCnt += rpmdsCount(alp->provides);
}
- al->providesHash = rpmalProvidesHashCreate(providesCnt/4+128,
+ al->providesHash = rpmalDepHashCreate(providesCnt/4+128,
sidHash, sidCmp, NULL, NULL);
for (i = 0; i < al->size; i++) {
alp = al->list + i;
if (al->providesHash == NULL)
rpmalMakeProvidesIndex(al);
- rpmalProvidesHashGetEntry(al->providesHash, nameId, &result,
+ rpmalDepHashGetEntry(al->providesHash, nameId, &result,
&resultCnt, NULL);
if (resultCnt==0) return NULL;