diff options
author | Daniel Lange <DLange@git.local> | 2022-06-03 08:55:20 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-06-03 08:55:20 +0200 |
commit | 937052b231259a47d881d539ad5748245ef55b99 (patch) | |
tree | 41071229fa007d8cf6902bb9253d2acd8cc66979 /OptionItem.h | |
parent | 1b805a31720727008b32b1129a167758519fd4db (diff) | |
download | debian_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.h | 10 |
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); |