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 --- ListItem.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ListItem.h') diff --git a/ListItem.h b/ListItem.h index 3fea725..87a7c07 100644 --- a/ListItem.h +++ b/ListItem.h @@ -3,10 +3,12 @@ /* htop - ListItem.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. */ +#include + #include "Object.h" typedef struct ListItem_ { @@ -16,14 +18,14 @@ typedef struct ListItem_ { bool moving; } ListItem; -extern ObjectClass ListItem_class; +extern const ObjectClass ListItem_class; ListItem* ListItem_new(const char* value, int key); void ListItem_append(ListItem* this, const char* text); -const char* ListItem_getRef(ListItem* this); - -long ListItem_compare(const void* cast1, const void* cast2); +static inline const char* ListItem_getRef(const ListItem* this) { + return this->value; +} #endif -- cgit v1.2.3