Panu Matilainen
130118d594
Use rpmTagType always now that it's available everywhere
...
- RPM_MASK_TYPE is not a datatype, move it out of the enum
- add missing cases python header handling to shut up gcc
2008-02-05 16:14:34 +02:00
Panu Matilainen
bbcf8f5ff0
Couple of missed type abstractions
2008-02-05 15:32:33 +02:00
Panu Matilainen
36e9f885e1
Yet another typedef for transaction ID, use where spotted
...
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers
2008-02-05 15:29:37 +02:00
Panu Matilainen
630a5a4c1a
Add rpm_color_t type for rpm color bits, use where spotted
2008-02-05 12:12:31 +02:00
Panu Matilainen
21ff694d9c
Remove double documention for exported header functions
2008-02-04 12:33:02 +02:00
Panu Matilainen
df1467c357
Rip the useless header method vectors
2008-02-04 12:28:02 +02:00
Panu Matilainen
aca6d4a2c4
Add rpm_time_t type for time types (in headers), use where spotted
...
- easy to spot, easy to change...
- time_t size can vary, header data needs fixed size
2008-02-04 11:50:39 +02:00
Panu Matilainen
f53c323372
Make rpmtag.h standalone, include from rpmtypes.h
...
- permits header.h to use the tag types
- revert other includes back to header.h, more crazy #include churn...
- rpmTagTable etc in header.h for now, don't really belong there but...
2008-02-03 16:24:07 +02:00
Panu Matilainen
abce05919d
Use rpmTag etc enums for rpmTagGet*() functions
2008-02-03 16:09:20 +02:00
Panu Matilainen
eb5dc35c19
Include spring-cleaning
...
- put some consistency into include ordering
- everything (apart from bits missed ;) is now ordered like this
1. "system.h"
2. other system includes
3. rpm public headers
4. rpm private headers
5. "debug.h"
2008-01-30 17:05:29 +02:00
Panu Matilainen
99faa2735b
rpmlib.h mass eviction
...
- explicitly include what's really needed instead
- document remaining uses
2008-01-30 13:53:51 +02:00
Panu Matilainen
7751f84bf0
Move HGE and related prototypes to header.h
2008-01-30 13:03:54 +02:00
Panu Matilainen
ecabf13710
Move rpmTagType stuff to rpmtag.h now that they can move
2008-01-30 13:00:26 +02:00
Panu Matilainen
c482427fbf
Uninline headerFreeData()
2008-01-30 12:42:07 +02:00
Panu Matilainen
458bf3b208
Remove bunch of unnecessary rpmlib.h includes
...
- replace with rpmtypes.h where needed
2008-01-30 11:49:25 +02:00
Panu Matilainen
e4d43147ee
Move header and -iterator to rpmtypes
2008-01-30 11:02:39 +02:00
Panu Matilainen
66345bfc5a
Move header tagdata types from header.h to rpmtypes.h
2008-01-30 10:16:14 +02:00
Panu Matilainen
0760e7389f
Add stub rpmtypes.h header stub
...
- place to stick in common typedefs to untangle header cross-include jungle
2008-01-30 10:13:09 +02:00
Panu Matilainen
d4ec2ad87f
Dirty hack to determine BDB .la name automatically
2008-01-09 17:50:25 +02:00
Panu Matilainen
3f9cde75df
Fix field-width specifiers when no space between (rhbz#323221)
...
Ported from rpm5.org work of Jeff Johnson.
2008-01-07 14:25:24 +02:00
Panu Matilainen
a93afe3035
Saner RPM_FORCEFREE_TYPE definition
2008-01-04 12:04:49 +02:00
Panu Matilainen
505e8c352c
Teach (unused) headerFreeTag about RPM_FORCEFREE_TYPE
2008-01-02 15:02:18 +02:00
Panu Matilainen
d772111b91
Use size_t, not int for header format padding args
2008-01-02 13:22:26 +02:00
Panu Matilainen
addac6a86b
Add rpm_data_t (and _constdata_t) for header data, use everywhere
...
- consistent, easy to grep for and change...
- bogus consts removed where spotted
2007-12-19 12:05:56 +02:00
Panu Matilainen
44c90ce3f0
Const-pedantry here and there...
2007-12-19 14:13:34 +02:00
Panu Matilainen
23b25e10c6
Avoid exiting too early due to nested rpmdbCheckSignals()
2007-12-18 21:33:40 +02:00
Panu Matilainen
f88fe168dd
Stick constfree to extension cache cleanup
...
- deal with the header mess later on
2007-12-18 10:46:39 +02:00
Panu Matilainen
083a82f7f1
Drop bogus const from headerFreeTag() data pointer
...
- no effect as it's hft is unused
- mark headerFreeData(), the real problem case, with _constfree() for
easy finding (inlined in header.h so can't use _constfree())
2007-12-18 10:45:36 +02:00
Panu Matilainen
75df2ea9ad
Drop bogus const from temp variable
2007-12-18 10:30:35 +02:00
Panu Matilainen
a56a86a792
Remove bogus const from rpmdb match iterator contents
2007-12-18 09:30:40 +02:00
Panu Matilainen
fbd12ed801
Use constfree for rpmdb_s contents for now
...
- rpmdb_internal is included from several places over the tree
2007-12-18 09:27:42 +02:00
Panu Matilainen
e4c1bb5ac2
Use constfree for rpmhash key + data for now
...
- sometimes they point to real const data, sometimes not, eww
2007-12-18 09:19:22 +02:00
Panu Matilainen
5c9ab2a393
Drop const from temporary variable
2007-12-17 21:45:56 +02:00
Panu Matilainen
4671a35bbc
Unbreak array query formats
...
- signed -> unsigned count type change broke it..
2007-12-17 10:05:37 +02:00
Panu Matilainen
3184b09c1b
Stupid reversed-logic thinko..
2007-12-16 15:51:09 +02:00
Panu Matilainen
ca3ac21658
Remove const from bunch of error message return types
...
- headerCheck(), rpmReadHeader() and rpmReadSignature() return malloced
error messages the caller needs to free, shouldn't be const
- adjust rpmdb hdrchk callbacks accordingly
2007-12-16 13:02:27 +02:00
Panu Matilainen
1a0a12cf15
Remove bogus const from rpmGenPath() temporary targets
2007-12-15 11:03:46 +02:00
Panu Matilainen
b6a663ec0a
Remove bogus const from rpmGetPath() temporary targets
2007-12-15 10:39:15 +02:00
Panu Matilainen
61e35657a6
Another bunch of bogus const removals
2007-12-14 17:55:31 +02:00
Panu Matilainen
8d66d5fe4a
Bunch of const char* corrections
...
- functions returning string constants as char * etc...
2007-12-14 15:17:59 +02:00
Panu Matilainen
7d817f06b1
Bunch of silly ssize_t casts
...
- cuts down the amount of spurious warnings from inlined code...
2007-12-14 13:39:52 +02:00
Panu Matilainen
4c91a3b6ad
More misc size_t issues
2007-12-14 10:30:46 +02:00
Panu Matilainen
1e96ead466
Use rpm_tagtype_t everywhere for rpm (header) tagtype type
...
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist
- easy to grep, easy to change...
- define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing
headerFreeData (ugh), easier to grep for and change than "-1"
2007-12-13 20:35:33 +02:00
Panu Matilainen
7e56c6355b
Use rpm_tag_t everywhere for rpm (header) tag type
...
- 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-13 19:32:37 +02:00
Panu Matilainen
cbd7a684a4
Use rpm_count_t everywhere for header data count
...
- 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-13 18:16:39 +02:00
Panu Matilainen
c8f2927227
Use rpm_count_t everywhere for header data count
...
- 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-13 09:25:10 +02:00
Panu Matilainen
9ce13e09ef
Switch to <rpm/foo.h> style for public headers
...
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen
2db7896a34
Remove double documentation from header methods to make doxygen shut up
2007-12-03 18:44:48 +02:00
Panu Matilainen
ee9cd5176f
Rename _rpmdbMatchIterator -> rpmdbMatchIterator_s
...
- consistency with other similar constructs
2007-12-03 16:58:16 +02:00
Panu Matilainen
a96f817d50
Split RPMTAG_* and related functions out of rpmlib.h to rpmtag.h
2007-12-03 10:47:25 +02:00