diff options
author | Ben Laurie <ben@openssl.org> | 2008-05-26 11:24:29 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-05-26 11:24:29 +0000 |
commit | 3c1d6bbc9242900af0e5db927fdcda38539bd54a (patch) | |
tree | 4d2effd34cdf6d1ec2258f22c86129644d64e03c /crypto/txt_db/txt_db.h | |
parent | cab14b980333d2383239e559302c739c9ec433ea (diff) |
LHASH revamp. make depend.
Diffstat (limited to 'crypto/txt_db/txt_db.h')
-rw-r--r-- | crypto/txt_db/txt_db.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crypto/txt_db/txt_db.h b/crypto/txt_db/txt_db.h index 307e1ba23f..3ef94d512b 100644 --- a/crypto/txt_db/txt_db.h +++ b/crypto/txt_db/txt_db.h @@ -81,12 +81,12 @@ typedef struct txt_db_st { int num_fields; STACK /* char ** */ *data; - LHASH **index; - int (**qual)(char **); + LHASH_OF(STRING) **index; + int (**qual)(STRING *); long error; long arg1; long arg2; - char **arg_row; + STRING *arg_row; } TXT_DB; #ifndef OPENSSL_NO_BIO @@ -96,11 +96,11 @@ long TXT_DB_write(BIO *out, TXT_DB *db); TXT_DB *TXT_DB_read(char *in, int num); long TXT_DB_write(char *out, TXT_DB *db); #endif -int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(char **), - LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp); +int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(STRING *), + LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp); void TXT_DB_free(TXT_DB *db); -char **TXT_DB_get_by_index(TXT_DB *db, int idx, char **value); -int TXT_DB_insert(TXT_DB *db,char **value); +STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, STRING *value); +int TXT_DB_insert(TXT_DB *db, STRING *value); #ifdef __cplusplus } |