From 02a63c6dec835943bf9bf64fae72d391c696a639 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 25 Nov 2013 14:01:40 +0000 Subject: [console] Pass escape sequence context to ANSI escape sequence handlers Signed-off-by: Michael Brown --- src/include/ipxe/ansiesc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/ansiesc.h b/src/include/ipxe/ansiesc.h index c00af258a..1a5a9a1b7 100644 --- a/src/include/ipxe/ansiesc.h +++ b/src/include/ipxe/ansiesc.h @@ -28,6 +28,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); +struct ansiesc_context; + /** A handler for an escape sequence */ struct ansiesc_handler { /** The control function identifier @@ -42,6 +44,7 @@ struct ansiesc_handler { unsigned int function; /** Handle escape sequence * + * @v ctx ANSI escape context * @v count Parameter count * @v params Parameter list * @@ -54,7 +57,8 @@ struct ansiesc_handler { * omitted". Consequently, the parameter list will always * contain at least one item. */ - void ( * handle ) ( unsigned int count, int params[] ); + void ( * handle ) ( struct ansiesc_context *ctx, unsigned int count, + int params[] ); }; /** Maximum number of parameters within a single escape sequence */ -- cgit v1.2.3-55-g7522