aboutsummaryrefslogtreecommitdiffstats
path: root/ListItem.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:19 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:19 +0200
commit266ab52b3a741a58fb17c48b0f7939d7c5d266de (patch)
treeb4bccc59b9a35f3acbe7560f3d633940c71aedef /ListItem.h
parent2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (diff)
downloaddebian_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.h17
1 files changed, 12 insertions, 5 deletions
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 <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

© 2014-2024 Faster IT GmbH | imprint | privacy policy