zdump/dt: Move declaration of DT structs to dt.h

Move DT structs to the header where they belong to.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Alexander Egorenkov
2021-10-11 14:32:39 +02:00
committed by Jan Höppner
parent 696a007b62
commit 1e450e6f7b
3 changed files with 20 additions and 17 deletions

View File

@@ -10,6 +10,8 @@
*/
#include "zgetdump.h"
#include "zg.h"
#include "dt.h"
/*
* Supported dump tools

View File

@@ -12,9 +12,10 @@
#ifndef DT_H
#define DT_H
#include "dfi.h"
#include <stdbool.h>
#include "dfi.h"
#define DUMP_EXTENDED true
#define DUMP_NON_EXTENDED false
@@ -24,12 +25,21 @@ struct dt {
void (*info)(void);
};
extern void dt_init(void);
extern void dt_info_print(void);
extern void dt_arch_set(enum dfi_arch arch);
extern void dt_version_set(int version);
extern void dt_attr_mem_limit_set(u64 mem_limit);
extern void dt_attr_force_set(int value);
extern void dt_attr_dasd_type_set(const char *dasd_type);
void dt_init(void);
void dt_info_print(void);
void dt_arch_set(enum dfi_arch arch);
void dt_version_set(int version);
void dt_attr_mem_limit_set(u64 mem_limit);
void dt_attr_force_set(int value);
void dt_attr_dasd_type_set(const char *dasd_type);
/*
* Supported s390 dumpers
*/
extern struct dt dt_s390mv;
extern struct dt dt_s390mv_ext;
extern struct dt dt_s390sv;
extern struct dt dt_s390sv_ext;
extern struct dt dt_scsi;
#endif

View File

@@ -71,13 +71,4 @@ int zfuse_mount_dump(void);
void zfuse_umount(void);
#endif
/*
* Supported s390 dumpers
*/
extern struct dt dt_s390mv;
extern struct dt dt_s390mv_ext;
extern struct dt dt_s390sv;
extern struct dt dt_s390sv_ext;
extern struct dt dt_scsi;
#endif /* ZGETDUMP_H */