htop/ListItem.h

33 lines
599 B
C
Raw Normal View History

2006-03-04 18:16:49 +00:00
#ifndef HEADER_ListItem
#define HEADER_ListItem
/*
2006-06-06 20:28:42 +00:00
htop - ListItem.h
2011-05-26 16:35:07 +00:00
(C) 2004-2011 Hisham H. Muhammad
Released under the GNU GPLv2, see the COPYING file
2006-03-04 18:16:49 +00:00
in the source distribution for its full text.
*/
#include <stdbool.h>
2006-03-04 18:16:49 +00:00
#include "Object.h"
2006-06-06 20:28:42 +00:00
2021-04-29 15:12:43 +00:00
2006-03-04 18:16:49 +00:00
typedef struct ListItem_ {
Object super;
char* value;
int key;
bool moving;
2006-03-04 18:16:49 +00:00
} ListItem;
2020-10-05 11:19:50 +00:00
extern const ObjectClass ListItem_class;
2006-03-04 18:16:49 +00:00
ListItem* ListItem_new(const char* value, int key);
2006-03-04 18:16:49 +00:00
void ListItem_append(ListItem* this, const char* text);
2006-06-06 20:28:42 +00:00
2020-10-18 17:22:30 +00:00
static inline const char* ListItem_getRef(const ListItem* this) {
return this->value;
}
2006-06-06 20:28:42 +00:00
2006-03-04 18:16:49 +00:00
#endif