From 65357c8c46154de4e4eca14075bfe5523bb5fc14 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 7 Dec 2020 10:26:01 +0100 Subject: New upstream version 3.0.3 --- FunctionBar.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'FunctionBar.h') diff --git a/FunctionBar.h b/FunctionBar.h index 486990f..925e323 100644 --- a/FunctionBar.h +++ b/FunctionBar.h @@ -3,7 +3,7 @@ /* htop - FunctionBar.h (C) 2004-2011 Hisham H. Muhammad -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ @@ -12,7 +12,10 @@ in the source distribution for its full text. typedef struct FunctionBar_ { int size; char** functions; - char** keys; + union { + char** keys; + const char* const* constKeys; + } keys; int* events; bool staticData; } FunctionBar; @@ -25,9 +28,11 @@ void FunctionBar_delete(FunctionBar* this); void FunctionBar_setLabel(FunctionBar* this, int event, const char* text); -void FunctionBar_draw(const FunctionBar* this, char* buffer); +void FunctionBar_draw(const FunctionBar* this); -void FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr); +void FunctionBar_drawExtra(const FunctionBar* this, const char* buffer, int attr, bool setCursor); + +void FunctionBar_append(const char* buffer, int attr); int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos); -- cgit v1.2.3