diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
| commit | ae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch) | |
| tree | fdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.local/bin/htop-vim/Settings.h | |
| parent | 06ad645351572c0e7188c52028998384d718df2e (diff) | |
Diffstat (limited to 'fedora/.local/bin/htop-vim/Settings.h')
| -rw-r--r-- | fedora/.local/bin/htop-vim/Settings.h | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/fedora/.local/bin/htop-vim/Settings.h b/fedora/.local/bin/htop-vim/Settings.h deleted file mode 100644 index baf05da..0000000 --- a/fedora/.local/bin/htop-vim/Settings.h +++ /dev/null @@ -1,136 +0,0 @@ -#ifndef HEADER_Settings -#define HEADER_Settings -/* -htop - Settings.h -(C) 2004-2011 Hisham H. Muhammad -Released under the GNU GPLv2+, see the COPYING file -in the source distribution for its full text. -*/ - -#include "config.h" // IWYU pragma: keep - -#include <stdbool.h> -#include <stdint.h> - -#include "Hashtable.h" -#include "HeaderLayout.h" -#include "Process.h" - - -#define DEFAULT_DELAY 15 - -#define CONFIG_READER_MIN_VERSION 3 - -typedef struct { - const char* name; - const char* columns; - const char* sortKey; -} ScreenDefaults; - -typedef struct { - size_t len; - char** names; - int* modes; -} MeterColumnSetting; - -typedef struct { - char* name; - ProcessField* fields; - uint32_t flags; - int direction; - int treeDirection; - ProcessField sortKey; - ProcessField treeSortKey; - bool treeView; - bool treeViewAlwaysByPID; - bool allBranchesCollapsed; -} ScreenSettings; - -typedef struct Settings_ { - char* filename; - int config_version; - HeaderLayout hLayout; - MeterColumnSetting* hColumns; - Hashtable* dynamicColumns; - - ScreenSettings** screens; - unsigned int nScreens; - unsigned int ssIndex; - ScreenSettings* ss; - - int colorScheme; - int delay; - - bool countCPUsFromOne; - bool detailedCPUTime; - bool showCPUUsage; - bool showCPUFrequency; - #ifdef BUILD_WITH_CPU_TEMP - bool showCPUTemperature; - bool degreeFahrenheit; - #endif - bool showProgramPath; - bool shadowOtherUsers; - bool showThreadNames; - bool hideKernelThreads; - bool hideRunningInContainer; - bool hideUserlandThreads; - bool highlightBaseName; - bool highlightDeletedExe; - bool shadowDistPathPrefix; - bool highlightMegabytes; - bool highlightThreads; - bool highlightChanges; - int highlightDelaySecs; - bool findCommInCmdline; - bool stripExeFromCmdline; - bool showMergedCommand; - bool updateProcessNames; - bool accountGuestInCPUMeter; - bool headerMargin; - bool screenTabs; - #ifdef HAVE_GETMOUSE - bool enableMouse; - #endif - int hideFunctionBar; // 0 - off, 1 - on ESC until next input, 2 - permanently - #ifdef HAVE_LIBHWLOC - bool topologyAffinity; - #endif - - bool changed; - uint64_t lastUpdate; -} Settings; - -#define Settings_cpuId(settings, cpu) ((settings)->countCPUsFromOne ? (cpu)+1 : (cpu)) - -static inline ProcessField ScreenSettings_getActiveSortKey(const ScreenSettings* this) { - return (this->treeView) - ? (this->treeViewAlwaysByPID ? PID : this->treeSortKey) - : this->sortKey; -} - -static inline int ScreenSettings_getActiveDirection(const ScreenSettings* this) { - return this->treeView ? this->treeDirection : this->direction; -} - -void Settings_delete(Settings* this); - -int Settings_write(const Settings* this, bool onCrash); - -Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns); - -ScreenSettings* Settings_newScreen(Settings* this, const ScreenDefaults* defaults); - -void ScreenSettings_delete(ScreenSettings* this); - -void ScreenSettings_invertSortOrder(ScreenSettings* this); - -void ScreenSettings_setSortKey(ScreenSettings* this, ProcessField sortKey); - -void Settings_enableReadonly(void); - -bool Settings_isReadonly(void); - -void Settings_setHeaderLayout(Settings* this, HeaderLayout hLayout); - -#endif |
