summaryrefslogtreecommitdiff
path: root/lib/rpmdb_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-03-31 01:12:15 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-03-31 01:12:15 +0300
commitfbc11b67656e93bccef495a09b1a59805c1dde3f (patch)
tree6e4b3284c53fe530ab3d865ee5b7c70aa9da9a94 /lib/rpmdb_internal.h
parentc8591a822eb3c7499e5fcf3556c28aab591d2802 (diff)
downloadlibrpm-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.h6
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;