From 37fcf33d7cf2ed64faaf8123269fae57ff2c8f21 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 18 Nov 2010 23:40:09 -0800 Subject: [PATCH] document hdb_entry_ex --- lib/hdb/hdb.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/hdb/hdb.h b/lib/hdb/hdb.h index 4dd6b8bdd..948322bc1 100644 --- a/lib/hdb/hdb.h +++ b/lib/hdb/hdb.h @@ -70,6 +70,13 @@ enum hdb_lockop{ HDB_RLOCK, HDB_WLOCK }; typedef struct hdb_master_key_data *hdb_master_key; +/** + * hdb_entry_ex is a wrapper structure around the hdb_entry structure + * that allows backends to keep a pointer to the backing store, ie in + * ->hdb_fetch(), so that we the kadmin/kpasswd backend gets around to + * ->hdb_store(), the backend doesn't need to lookup the entry again. + */ + typedef struct hdb_entry_ex { void *ctx; hdb_entry entry;