From ed7dc02a95026f85cdd4c2c350a034458343d340 Mon Sep 17 00:00:00 2001 From: Anselm Martin Hoffmeister Date: Mon, 9 Apr 2007 18:01:43 +0000 Subject: hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise output buffering defintions and the like) --- src/include/console.h | 15 +++++++++++++-- src/include/gpxe/dhcp.h | 3 +++ 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/console.h b/src/include/console.h index b1fe955b2..fd1382b4a 100644 --- a/src/include/console.h +++ b/src/include/console.h @@ -30,8 +30,8 @@ struct console_driver { /** Console is disabled. * - * The console's putchar(), getchar() and iskey() methods will - * not be called while #disabled==1. Typically the + * The console's putchar(), putline(), getchar() and iskey() + * methods will not be called while #disabled==1. Typically the * console's initialisation functions (called via INIT_FN()) * will set #disabled=0 upon completion. * @@ -47,6 +47,17 @@ struct console_driver { */ void ( *putchar ) ( int character ); + /** Write an entire line to the console. + * This is intended to be used by line-oriented output media, + * like system logging facilities or line printers. + * Line output will not contain non-printable characters. + * + * @v linebuffer Pointer to the \0-terminated line + * @ret None - + * @err None - + */ + void ( * putline ) ( unsigned char * linebuffer ); + /** Read a character from the console. * * @v None - diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index a3311d1a1..1ec7ca038 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -60,6 +60,9 @@ /** DNS servers */ #define DHCP_DNS_SERVERS 6 +/** Syslog servers */ +#define DHCP_LOG_SERVERS 7 + /** Host name */ #define DHCP_HOST_NAME 12 -- cgit v1.2.3-55-g7522