diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-31 01:12:15 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-31 01:12:15 +0300 |
commit | fbc11b67656e93bccef495a09b1a59805c1dde3f (patch) | |
tree | 6e4b3284c53fe530ab3d865ee5b7c70aa9da9a94 /lib/rpmdb_internal.h | |
parent | c8591a822eb3c7499e5fcf3556c28aab591d2802 (diff) | |
download | librpm-tizen-fbc11b67656e93bccef495a09b1a59805c1dde3f.tar.gz librpm-tizen-fbc11b67656e93bccef495a09b1a59805c1dde3f.tar.bz2 librpm-tizen-fbc11b67656e93bccef495a09b1a59805c1dde3f.zip |
Shed the pointless per-dbi memory allocators
- we want to use our own allocators for exit-on-enomem behavior but
having per-index allocator configuration makes no sense whatsoever
Diffstat (limited to 'lib/rpmdb_internal.h')
-rw-r--r-- | lib/rpmdb_internal.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rpmdb_internal.h b/lib/rpmdb_internal.h index 7991b26a0..997f0d6b4 100644 --- a/lib/rpmdb_internal.h +++ b/lib/rpmdb_internal.h @@ -99,7 +99,6 @@ unsigned char * dbi_lk_conflicts; #endif /* dbinfo parameters */ int dbi_pagesize; /*!< (fs blksize) */ - void * (*dbi_malloc) (size_t nbytes); /* hash access parameters */ unsigned int dbi_h_ffactor; /*!< */ unsigned int (*dbi_h_hash_fcn) (DB *, const void *bytes, @@ -148,15 +147,12 @@ struct rpmdb_s { int db_mkdirDone; /*!< Has db_home been created? */ void (*db_errcall) (const char *db_errpfx, char *buffer); FILE * db_errfile; - void * (*db_malloc) (size_t nbytes); - void * (*db_realloc) (void * ptr, - size_t nbytes); - void (*db_free) (void * ptr); unsigned char * db_bits; /*!< package instance bit mask. */ int db_nbits; /*!< no. of bits in mask. */ rpmdb db_next; int db_opens; void * db_dbenv; /*!< Berkeley DB_ENV handle. */ + int db_ndbi; /*!< No. of tag indices. */ dbiIndex * _dbi; /*!< Tag indices. */ struct rpmop_s db_getops; |