mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The primary goal is to separate DFO code into multiple smaller modules and make it unit testable. This refactoring only moved the code around w/o changing any functionality. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
37 lines
704 B
C
37 lines
704 B
C
/*
|
|
* zgetdump - Tool for copying and converting System z dumps
|
|
*
|
|
* Generic output dump format functions (DFO - Dump Format Output)
|
|
*
|
|
* Copyright IBM Corp. 2001, 2017
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*/
|
|
|
|
#ifndef DFO_H
|
|
#define DFO_H
|
|
|
|
u64 dfo_read(void *buf, u64 cnt);
|
|
void dfo_seek(u64 addr);
|
|
u64 dfo_size(void);
|
|
const char *dfo_name(void);
|
|
void dfo_init(void);
|
|
int dfo_set(const char *dfo_name);
|
|
|
|
/*
|
|
* DFO operations
|
|
*/
|
|
struct dfo {
|
|
const char *name;
|
|
void (*init)(void);
|
|
};
|
|
|
|
/*
|
|
* Supported DFO dump formats
|
|
*/
|
|
extern struct dfo dfo_s390;
|
|
extern struct dfo dfo_elf;
|
|
|
|
#endif /* DFO_H */
|