Add infastructure for global transaction set string pool
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 12 Sep 2012 10:37:54 +0000 (13:37 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 12 Sep 2012 10:37:54 +0000 (13:37 +0300)
commita3bb7f59a7a3b75d2d13029e8a47b700bf8634dd
tree894986900d030ae016799db868bba9f6dd282d06
parent3226c2073a71818ab45de6784840ccdc28d07b46
Add infastructure for global transaction set string pool

- Add a pool pointer to to ts members struct and a getter function
- Grab the global pool for rpmte dependency- and file info creation,
  if its NULL then the sets will use private pools of their own.
- Add the (currently) required magic voodoo rain-dance to freeze and
  unfreeze the pool as necessary wrt new element additions: for
  current rpmal and fingerprinting to work, the string pointers
  must be immovable.
- This is infrastructure only: nothing creates the global pool yet,
  so everything is still using private pools.
lib/depends.c
lib/rpmte.c
lib/rpmts.c
lib/rpmts.h
lib/rpmts_internal.h
lib/transaction.c