aboutsummaryrefslogtreecommitdiff
path: root/lib/mfdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mfdb.h')
-rw-r--r--lib/mfdb.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/mfdb.h b/lib/mfdb.h
index 9bb611be..926b4a56 100644
--- a/lib/mfdb.h
+++ b/lib/mfdb.h
@@ -15,8 +15,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-typedef void (*db_item_printer_t)(const char *key, size_t keysize,
- const void *content, size_t contsize);
+#include <mailutils/dbm.h>
+
+typedef void (*db_item_printer_t)(struct mu_dbm_datum const *,
+ struct mu_dbm_datum const *);
typedef int (*db_expire_t)(const void *content);
struct db_format {
@@ -39,6 +41,9 @@ struct db_format *rate_format;
struct db_format *tbf_rate_format;
struct db_format *greylist_format;
+mu_dbm_file_t mf_dbm_open(char *dbname, int access, int mode);
+int mf_file_mode_to_safety_criteria(int mode);
+
void db_format_setup(void);
void db_format_enumerate(dbfmt_enumerator_t fp, void *data);

Return to:

Send suggestions and report system problems to the System administrator.