From 266ab52b3a741a58fb17c48b0f7939d7c5d266de Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:19 +0200 Subject: Imported Upstream version 0.6 --- ListItem.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'ListItem.h') diff --git a/ListItem.h b/ListItem.h index 9f1584b..580cbc8 100644 --- a/ListItem.h +++ b/ListItem.h @@ -9,24 +9,31 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ +#include "String.h" #include "Object.h" -#include "CRT.h" +#include "RichString.h" +#include #include "debug.h" - typedef struct ListItem_ { Object super; - char* text; + char* value; + int key; } ListItem; extern char* LISTITEM_CLASS; - -ListItem* ListItem_new(char* text); +ListItem* ListItem_new(char* value, int key); void ListItem_delete(Object* cast); void ListItem_display(Object* cast, RichString* out); +void ListItem_append(ListItem* this, char* text); + +const char* ListItem_getRef(ListItem* this); + +int ListItem_compare(const Object*, const Object*); + #endif -- cgit v1.2.3