#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include "fprint.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
fingerPrintCache | fpCacheCreate (int sizeHint) |
Create finger print cache. More... | |
void | fpCacheFree (fingerPrintCache cache) |
Destroy finger print cache. More... | |
const struct fprintCacheEntry_s* | cacheContainsDirectory ( fingerPrintCache cache, const char * dirName) |
Find directory name entry in cache. More... | |
fingerPrint | doLookup (fingerPrintCache cache, const char * dirName, const char * baseName, int scareMemory) |
Return finger print of a file path. More... | |
fingerPrint | fpLookup (fingerPrintCache cache, const char * dirName, const char * baseName, int scareMemory) |
Return finger print of a file path. More... | |
unsigned int | fpHashFunction (const void * key) |
Return hash value for a finger print. More... | |
int | fpEqual (const void * key1, const void * key2) |
Compare two finger print entries. More... | |
void | fpLookupList (fingerPrintCache cache, const char ** dirNames, const char ** baseNames, const int * dirIndexes, int fileCount, fingerPrint * fpList) |
Return finger prints of an array of file paths. More... | |
void | fpLookupHeader (fingerPrintCache cache, Header h, fingerPrint * fpList) |
Return finger prints of all file names in header. More... |
Definition in file fprint.c.
|
Find directory name entry in cache.
Definition at line 34 of file fprint.c. Referenced by doLookup(). |
|
Return finger print of a file path.
Definition at line 53 of file fprint.c. Referenced by fpLookup(), and fpLookupList(). |
|
Create finger print cache.
Definition at line 12 of file fprint.c. Referenced by FP_EQUAL(), rpmRunTransactions(), rpmdbFindByFile(), and rpmdbFindFpList(). |
|
Destroy finger print cache.
Definition at line 22 of file fprint.c. Referenced by FP_EQUAL(), rpmRunTransactions(), rpmdbFindByFile(), and rpmdbFindFpList(). |
|
Compare two finger print entries. exactly equivalent to FP_EQUAL macro.
Definition at line 190 of file fprint.c. Referenced by FP_EQUAL(). |
|
Return hash value for a finger print. Hash based on dev and inode only!
Definition at line 172 of file fprint.c. Referenced by FP_EQUAL(). |
|
Return finger print of a file path.
Definition at line 166 of file fprint.c. Referenced by FP_EQUAL(), and rpmdbFindByFile(). |
|
Return finger prints of all file names in header. @warning: scareMemory is assumed!
Definition at line 226 of file fprint.c. Referenced by FP_EQUAL(). |
|
Return finger prints of an array of file paths. @warning: scareMemory is assumed!
Definition at line 206 of file fprint.c. Referenced by FP_EQUAL(), fpLookupHeader(), rpmRunTransactions(), and rpmdbFindFpList(). |