aboutsummaryrefslogtreecommitdiffstats
path: root/OptionItem.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-06-03 08:55:20 +0200
committerDaniel Lange <DLange@git.local>2022-06-03 08:55:20 +0200
commit937052b231259a47d881d539ad5748245ef55b99 (patch)
tree41071229fa007d8cf6902bb9253d2acd8cc66979 /OptionItem.h
parent1b805a31720727008b32b1129a167758519fd4db (diff)
downloaddebian_htop-937052b231259a47d881d539ad5748245ef55b99.tar.gz
debian_htop-937052b231259a47d881d539ad5748245ef55b99.tar.bz2
debian_htop-937052b231259a47d881d539ad5748245ef55b99.zip
New upstream version 3.2.1upstream/3.2.1
Diffstat (limited to 'OptionItem.h')
-rw-r--r--OptionItem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/OptionItem.h b/OptionItem.h
index 35c8506..ba28775 100644
--- a/OptionItem.h
+++ b/OptionItem.h
@@ -13,6 +13,7 @@ in the source distribution for its full text.
enum OptionItemType {
+ OPTION_ITEM_TEXT,
OPTION_ITEM_CHECK,
OPTION_ITEM_NUMBER,
};
@@ -32,6 +33,12 @@ typedef struct OptionItem_ {
char* text;
} OptionItem;
+typedef struct TextItem_ {
+ OptionItem super;
+
+ char* text;
+} TextItem;
+
typedef struct CheckItem_ {
OptionItem super;
@@ -51,9 +58,12 @@ typedef struct NumberItem_ {
} NumberItem;
extern const OptionItemClass OptionItem_class;
+extern const OptionItemClass TextItem_class;
extern const OptionItemClass CheckItem_class;
extern const OptionItemClass NumberItem_class;
+TextItem* TextItem_new(const char* text);
+
CheckItem* CheckItem_newByRef(const char* text, bool* ref);
CheckItem* CheckItem_newByVal(const char* text, bool value);
bool CheckItem_get(const CheckItem* this);

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