summaryrefslogtreecommitdiff
path: root/lib/rpmfi.h
AgeCommit message (Collapse)AuthorFilesLines
2009-03-27Lose unused/useless Type and tagN fields from rpmfi structPanu Matilainen1-1/+1
2008-12-22Perform relocations from rpmte instead of rpmfiPanu Matilainen1-2/+1
- rpmte has all the necessary bits at hand, rpmfi does not - avoids silly ping-pong through transaction set to get to the ts element - avoids recalculating number of relocations - avoids accessing rpmte struct outside rpmte.c
2008-12-11Add public rpmfi function for retrieving digest algorithm of the setPanu Matilainen1-0/+7
- the information is already available through rpmfiFDigest() but that requires valid iteration index to be active, whereas the digest algo is per info set, not per file
2008-12-10Move ->actions from rpmfi to rpmfsFlorian Festi1-14/+0
and adjust all code using it also "revert" a4e345455d817ce6c56940600d652ee3ae0aa5d5 "Move file action calculations to rpmfiNew() where possible"
2008-11-27Eliminate silly rpmfiTypeString()Panu Matilainen1-7/+0
- Transaction elements are install/erase type, not file info sets, rename to rpmteTypeString(). It's only "useful" for fsm internal debugging messages, hide it there.
2008-11-20Add rpmfiFLang() method for retrieving file language(s)Panu Matilainen1-0/+7
- hardly anything needs outside install internals but it's harmless too...
2008-11-19Oops, file modes are needed on erase too to avoid suffixes on directoriesPanu Matilainen1-1/+1
2008-11-18Use finer grained rpmfi creation flags for in rpmteNew()Panu Matilainen1-1/+1
- also call the erase flags erase, not remove...
2008-11-18Add preliminary rpmfi flag groupings for base operationsPanu Matilainen1-0/+16
- just a start and probably not 100% accurate..
2008-11-18Add control bits for all (relevant) parts of rpmfi dataPanu Matilainen1-8/+21
- permit fine grained control over what's loaded into fi for what operations, non-trivial memory savings are possible - future possibilities - these reflect closely to rpm verify control bits, all we need is RPMFI_DISK or similar operation to pull the information from disk instead of header and then verify can simply compare two rpmfi's
2008-11-18Nuke useless rpmfiFContext()Panu Matilainen1-7/+0
- it only ever returns NULLs because there are no security contexts in headers (and having them in headers make no sense as the context varies based on whatever selinux policy happens to be active on the target system)
2008-11-18Remember rpmfi creation flagsPanu Matilainen1-0/+2
2008-11-14Add more flags to control rpmfi creationPanu Matilainen1-0/+2
- RPMFI_NOFILELANGS to avoid loading lang data (only useful on install) - RPMFI_NOFILEOWNER to avoid loading of user+group data
2008-11-11Add rpmfi get + set methods for file actionsPanu Matilainen1-0/+14
2008-10-30Add couple of new rpmfi flags for file classes and file dependsPanu Matilainen1-0/+2
2008-10-30Turn rpmfiNew() scareMem argument into bitfield of flagsPanu Matilainen1-2/+7
- preserve behavior with 0/1 - more room for controlling what gets loaded into file info set, not everything is needed at all times
2008-10-29Add fsm and rpmfi machinery for file capabilitiesPanu Matilainen1-0/+9
- new rpmfiFCaps() API to retrieve the info from rpmfi set - fsm internals quite similar to selinux handling - plenty of #ifdef's, another possibility would be adding cap_foo dummies to system.h like for selinux
2008-06-12Make rpmfiFSize() return rpm_loff_t type, fixup callersPanu Matilainen1-1/+1
- Internally file sizes are still stored as 32bit, going to 64bit wouldn't make much sense (would only waste memory for nothing) as long as we're bound by cpio's 32bit per-file limit. Being "64bit ready" for filesizes doesn't hurt anything though...
2008-06-10Eliminate rpmfiBuildFNames() from the APIPanu Matilainen1-20/+0
- headerGet() with extensions enabled provides a nicer interface to the data, no need to expose it
2008-06-02Add rpmfiFDigestHex() for converting the binary digest to hexPanu Matilainen1-0/+11
- conversion (back to) hex presentation is done manually in several places, might as well have a function to do it...
2008-06-02Mark rpmfiMD5() deprecatedPanu Matilainen1-1/+2
2008-06-02On a second thought, rename rpmfiDigest() to rpmfiFDigest() for consistencyPanu Matilainen1-1/+1
- it operates on current file of the set, not on the entire set so while changing API, name it similarly to other things that operate on current file
2008-06-02More preliminaries for non-md5 file checksumsPanu Matilainen1-0/+10
- add rpmfiDigest() method (similar to one in rpm5.org) for retrieving file digest, algorithm and digest size - make rpmfiMD5() just a special case of rpmfiDigest()
2008-05-21Eliminate rpmfiBuildFClasses() and rpmfiBuildFDepts() from the API+ABIPanu Matilainen1-26/+0
- both are only needed by tag extensions, move them there - headerGet() with extensions enabled provides a nicer API for accessing the data anyway
2008-04-24Remove meaningless extern on function declarations in headersPanu Matilainen1-9/+9
2008-03-24Remove bogus const from rpmRelocation structPanu Matilainen1-2/+2
2008-02-05Mass convert (back) to rpmTag as it's usable everywhere nowPanu Matilainen1-3/+3
- cast away a few cases where the enum usage causes ridiculous amount of compiler warnings from unhandled switch-cases
2008-02-05Use rpm_flag_t for header generic bitfields (file flags etc)Panu Matilainen1-2/+3
- additionally use rpmfileAtts / rpmVerifyFlags consistently where appropriate
2008-02-05More rpm-headerdata types: rpm_dev_t and rpm_ino_t, use where spottedPanu Matilainen1-1/+1
- both hardwired to 32bit internally
2008-02-05Add rpm_rdev_t type for rdev entriesPanu Matilainen1-1/+1
- rdev is 16bit whereas dev is 32bit, eww...
2008-02-05Add rpm_mode_t type, use where spottedPanu Matilainen1-2/+2
- bring the types under some sort of control, previously mixture of int16_t, uint16_t and unsigned short was used..
2008-02-05Add rpm_color_t type for rpm color bits, use where spottedPanu Matilainen1-2/+2
2008-02-04Add rpm_time_t type for time types (in headers), use where spottedPanu Matilainen1-1/+1
- easy to spot, easy to change... - time_t size can vary, header data needs fixed size
2008-02-04Add rpm_off_t type for file size types, use where spottedPanu Matilainen1-1/+1
- preliminaries for bumping up the max size, use rpm-specific type as off_t size varies, header data needs fixed size
2008-01-30Stick relocation struct to rpmfi, typedef to rpmtypes...Panu Matilainen1-0/+8
2008-01-30Remove bunch of unnecessary rpmlib.h includesPanu Matilainen1-1/+1
- replace with rpmtypes.h where needed
2008-01-02Signedness consistency in rpmfi interface vs internal structuresPanu Matilainen1-7/+7
2007-12-13Use rpm_tag_t everywhere for rpm (header) tag typePanu Matilainen1-3/+3
- typedef'ed as int32_t for now, negative values used in some places for error cases - easy to grep, easy to change... - add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
2007-12-13Use rpm_count_t everywhere for header data countPanu Matilainen1-2/+2
- typedef'ed as uint32_t as that's the key size limit imposed by BDB, relevant for RPM_BIN_TYPE - easy to change to whatever later on as it's now consistent everywhere - explicit casts where needed to avoid new warnings from signedness
2007-12-13Use rpm_count_t everywhere for header data countPanu Matilainen1-3/+3
- typedef'ed as uint32_t as that's the key size limit imposed by BDB, relevant for RPM_BIN_TYPE - easy to change to whatever later on as it's now consistent everywhere
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-1/+1
- adjust include paths accordingly
2007-12-04Eliminate debug junk from the APIPanu Matilainen1-22/+0
- add some helper macros to accomplish the same, easy to enable / disable as needed
2007-12-02Move file action enums to rpmfi where they logically belongPanu Matilainen1-0/+21
2007-12-02Move RPMFILE_* file attributes to rpmfi.hPanu Matilainen1-0/+22
2007-12-03Split rpmfi internals to separate headerPanu Matilainen1-126/+0
2007-12-02Move file state defs to rpmfi where they logically belongPanu Matilainen1-0/+12
2007-12-02Move file type enums to rpmfi where it logically belongsPanu Matilainen1-0/+17
2007-11-27Move rpmfiBuildFNames() to rpmfi now that it's possiblePanu Matilainen1-0/+20
2007-11-23Add doxygen grouping to rpmfi methodsPanu Matilainen1-42/+42
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-1/+1