[console] Move putchar() and getchar() declarations to stdio.h

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-03-26 14:43:52 +01:00
parent d1465f7b0b
commit a6d49c17c9
13 changed files with 6 additions and 13 deletions

View File

@@ -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>

View File

@@ -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 );

View File

@@ -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, ... );