Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
- get them out of sight from main header.h
- turn headerSprintf() into macro around headerFormat(), that way
rpmTagTable and rpmHeaderFormats lossage can be hidden away as far
as headerSprintf() use is concerned
|
|
- doxygen whines a bit less..
|
|
- requiring all access through rpmtdFromFoo() just adds unnecessary
indirection and pain for little gain, the header is fairly intelligent
when it comes to inserting data
- this gives us various benefits over the old headerAddEntry() interface too:
+ basic type checking done by compiler
+ extra sanity checking (ie you can't add string data to integer tags,
don't permit adding more than one entry to non-array data etc)
+ "do the right thing" approach - add / append as needed and supported
by various types
+ headerPutString() can now be used on both single strings and string
arrays making the interface much nicer for the rather common case of
appending strings one by one to string array tags
|
|
- out of sight, out of mind ;)
- add deprecation warnings where missing
- move to header_legacy doxygen group to avoid littering main documentation
|
|
- make internal header add + append take rpmtd as argument, legacy
interfaces are just wrappers around them
- add deprecation markers
|
|
- headerModifyEntry() is the legacy interface going away, make it
use headerMod() and deprecate it
|
|
- just a dumb wrapper around old headerModifyEntry() for now
|
|
- no differences here except headerDel is a nice short name (lifted from
rpm5.org) to go with the new headerGet() etc family
- deprecate headerRemoveEntry()
|
|
|
|
- earlier there was no way for caller to know if returned data or parts
of it pointed to header memory (other than "know" how rpm behaves on
given types), this allows consistent behavior for callers (ie you
always "own" the returned data, not depending on header) when needed
- if HEADERGET_ALLOC flag is set, all returned data is malloced, instead
of possibly pointing to header memory depending on type
- HEADERGET_ALLOC overrides HEADERGET_MINMEM if both specified
- adjust various header internal callers to accept flags instead of just
minmem argument
- TODO: make sure tag extensions honor this too (all but fsnamesTag
currently allocate anyway)
|
|
|
|
|
|
|
|
- everything is now accessible through other methods, no need to expose
our internals
- tagtbl.c is now included from tagname.c instead and not separately built
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- tag extensions are only needed by headerGet(), formats only by headerFormat()
|
|
|
|
|
|
- minimal, crude conversion of all formatTag() functions for now
|
|
- bit of a kludgery until fooTag() formatters have been converted
to take rpmtd struct as argument
- idea lifted from rpm5.org, implemented independently (and probably quite
differently)
|
|
- add rpmTag_e enumerations for all extension tags
- add extension field to headerTagTableEntry_s for things that are "pure"
extensions (instead of just extension overrides) so we have a chance to
catch out anybody trying to insert such tags to headers
|
|
- tag container isn't that big a win on add/append operations as it is on
retrieval, just use the existing headerAddEntry() family to do the
actual work
- headerPut() is a nice and short name, lifted from rpm5.org, API might
differ
- flags to control operation, just whether append is permitted or not for now
|
|
- new API function headerNext() for the new interface
- headerNextIterator() is just a compat wrapper
|
|
- new public API function headerGet() that returns data in rpmtd, with
flags to control operation (just minmem or no for now)
- headerGet() is nice and short name, lifted from rpm5.org but our API
differs as this takes a separate arg for the tag to get instead of
(ab)using the container to pass data back and forth
- internal compatibility wrapper to keep headerGetEntry() and -MinMem
version working
|
|
- to be used for passing around header and extension data
- inspired by similar changes in rpm5.org, details and implementation differ
|
|
|
|
- remove the now unnecessary chaining to different extension tables
|
|
- removes the need for copy-paste typeAlign array in package.c
|
|
|
|
- headerSprintf() is just a dumb wrapper around headerFormat() now,
tbltags and extensions are not used at all
- baby steps towards eliminating the the tag and extension tables from
the API/ABI...
|
|
|
|
- the split is largely arbitrary and mostly just causes, well, arbitrary
issues and limitations
- just move content from rpmdb/ to lib/ for now
|
|
CVS patchset: 5193
CVS date: 2001/11/19 22:45:35
|
|
CVS patchset: 5169
CVS date: 2001/11/11 00:11:33
|
|
CVS patchset: 5147
CVS date: 2001/11/01 23:18:15
|
|
CVS patchset: 5146
CVS date: 2001/11/01 20:15:10
|
|
CVS patchset: 5115
CVS date: 2001/10/15 21:07:08
|
|
CVS patchset: 5113
CVS date: 2001/10/15 17:53:34
|
|
intl/: Add gettext orphans.
popt/intl/: Add gettext orphans.
beecrypt: Add beecrypt repository.
rpmio/tdigest.c: Add beecrypt digest checks.
CVS patchset: 5077
CVS date: 2001/09/24 21:53:14
|
|
CVS patchset: 4962
CVS date: 2001/07/20 16:41:09
|
|
- portability: avoid st_mtime, gendiff uses basename, etc (#47497).
- glibc-2.0.x has not __va_copy().
- popthelp.c: static copy of stpcpy/stpncpy for the deprived (#47500).
CVS patchset: 4921
CVS date: 2001/07/06 20:37:42
|
|
- fix: add -r to useradd to prevent /etc/skel glop (#46215).
- fix: disambiguate typedef and struct name(s) for kpackage.
CVS patchset: 4908
CVS date: 2001/06/28 22:19:08
|
|
CVS patchset: 4880
CVS date: 2001/06/19 16:59:23
|