mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
[console] Move putchar() and getchar() declarations to stdio.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -14,7 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <strings.h>
|
||||
#include <ipxe/console.h>
|
||||
#include <ipxe/timer.h>
|
||||
#include <ipxe/if_arp.h>
|
||||
#include <ipxe/if_ether.h>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef _IPXE_CONSOLE_H
|
||||
#define _IPXE_CONSOLE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ipxe/tables.h>
|
||||
|
||||
/** @file
|
||||
@@ -100,8 +101,6 @@ struct console_driver {
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
extern void putchar ( int character );
|
||||
extern int getchar ( void );
|
||||
extern int iskey ( void );
|
||||
extern int getkey ( unsigned long timeout );
|
||||
|
||||
|
||||
@@ -6,6 +6,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#include <stdint.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
extern void putchar ( int character );
|
||||
|
||||
extern int getchar ( void );
|
||||
|
||||
extern int __attribute__ (( format ( printf, 1, 2 ) ))
|
||||
printf ( const char *fmt, ... );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user