c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen#ifndef DOVEADM_DUMP_H
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen#define DOVEADM_DUMP_H
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen#include "doveadm.h"
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainenstruct doveadm_cmd_dump {
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen const char *name;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen bool (*test)(const char *path);
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen doveadm_command_t *cmd;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen};
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen
f05f569c2ee0d1f5216614856ff0ae7bd60f27faTimo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_dbox;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_index;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_log;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_mailboxlog;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_thread;
4605cab1123700c52c515a433a2802fcbc827c62Timo Sirainenextern struct doveadm_cmd_dump doveadm_cmd_dump_zlib;
ceee39b0d2f8f5705b05cccb010c764e9771a9bcMartti Rannanjärviextern struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_file;
35de0999ddf1b445ac56c19b72be6e0053049eaaMartti Rannanjärviextern struct doveadm_cmd_dump doveadm_cmd_dump_dcrypt_key;
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen
134582c78f038b4d9b9fde127399aefa50935a53Timo Sirainenvoid doveadm_dump_register(const struct doveadm_cmd_dump *dump);
134582c78f038b4d9b9fde127399aefa50935a53Timo Sirainen
4f77d2f0f0743ad09d2a34e18be8eacf8014b7e0Pascal Volkvoid print_dump_types(void);
134582c78f038b4d9b9fde127399aefa50935a53Timo Sirainenvoid doveadm_dump_init(void);
134582c78f038b4d9b9fde127399aefa50935a53Timo Sirainenvoid doveadm_dump_deinit(void);
134582c78f038b4d9b9fde127399aefa50935a53Timo Sirainen
c664d0da658c8d3200d88ea3c4cd580afd33fa73Timo Sirainen#endif