aboutsummaryrefslogtreecommitdiffstats
path: root/OptionItem.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-06-03 08:55:21 +0200
committerDaniel Lange <DLange@git.local>2022-06-03 08:55:21 +0200
commitf8c86394f62c6e6f950fcbbff008f639db33241c (patch)
treee82dcf1ba008020628c96661587ed870e0cac179 /OptionItem.h
parent4d3dbd693ecd079d5907d81d5d2ff191baa61033 (diff)
parent937052b231259a47d881d539ad5748245ef55b99 (diff)
downloaddebian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.tar.gz
debian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.tar.bz2
debian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.zip
Update upstream source from tag 'upstream/3.2.1'
Update to upstream version '3.2.1' with Debian dir 43b873ddb7f7032e95da61a9cb65eee15c671e73
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