zdump/stdout: Extract stdout.h header from zgetdump.h

Create a separate C header for STDOUT to separate independent things and
make it more readable.

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 16:22:03 +02:00
committed by Jan Höppner
parent d8871197ea
commit 8308143008
4 changed files with 16 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
#include "zg.h"
#include "dfi.h"
#include "dfo.h"
#include "stdout.h"
int stdout_write_dump(void)
{

13
zdump/stdout.h Normal file
View File

@@ -0,0 +1,13 @@
/*
* Copyright IBM Corp. 2001, 2018
*
* 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 STDOUT_H
#define STDOUT_H
int stdout_write_dump(void);
#endif /* STDOUT_H */

View File

@@ -30,6 +30,7 @@
#include "dt.h"
#include "dfi.h"
#include "dfo.h"
#include "stdout.h"
#include "zfuse.h"
/*

View File

@@ -12,6 +12,7 @@
#ifndef ZGETDUMP_H
#define ZGETDUMP_H
#include "zg.h"
#include "opts.h"
/*
@@ -22,6 +23,4 @@ extern struct zgetdump_globals {
struct options opts;
} g;
int stdout_write_dump(void);
#endif /* ZGETDUMP_H */