diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:19 +0200 |
commit | 266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch) | |
tree | b4bccc59b9a35f3acbe7560f3d633940c71aedef /ListItem.h | |
parent | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff) | |
download | debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.gz debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.tar.bz2 debian_htop-266ab52b3a741a58fb17c48b0f7939d7c5d266de.zip |
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'ListItem.h')
-rw-r--r-- | ListItem.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 <string.h> #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 |