diff options
| author | Michael Brown | 2013-11-25 15:01:40 +0100 |
|---|---|---|
| committer | Michael Brown | 2013-11-27 12:27:50 +0100 |
| commit | 02a63c6dec835943bf9bf64fae72d391c696a639 (patch) | |
| tree | 21cd9a0967675db705cfe66168fea950b7f4d03e /src/include | |
| parent | [main] Defer "initialising devices" message until initialising devices (diff) | |
| download | ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.tar.gz ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.tar.xz ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.zip | |
[console] Pass escape sequence context to ANSI escape sequence handlers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/ansiesc.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 */ |
