summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-12-16 15:57:37 +0100
committercgzones <cgzones@googlemail.com>2021-12-17 14:45:15 +0100
commit1ef8c0e12f29606cb5bfb77d9bce78ae5e6bbb0e (patch)
tree07aeddcb9fff9efda3d23906df8cb7a8357c7924 /Process.c
parent6fcb1994c88cc33677c04352ddd8d6448c22c908 (diff)
Drop getCommandStr member of Process
Formatting the merged command string is now implemented in an platform independent way. Drop the Process member getCommandStr designed for overrides of individual platforms.
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Process.c b/Process.c
index 5214e97a..3f0da978 100644
--- a/Process.c
+++ b/Process.c
@@ -397,7 +397,7 @@ static inline char* stpcpyWithNewlineConversion(char* dstStr, const char* srcStr
* This function makes the merged Command string. It also stores the offsets of the
* basename, comm w.r.t the merged Command string - these offsets will be used by
* Process_writeCommand() for coloring. The merged Command string is also
- * returned by Process_getCommandStr() for searching, sorting and filtering.
+ * returned by Process_getCommand() for searching, sorting and filtering.
*/
void Process_makeCommandStr(Process* this) {
ProcessMergedCommand* mc = &this->mergedCommand;
@@ -1011,7 +1011,7 @@ void Process_done(Process* this) {
/* This function returns the string displayed in Command column, so that sorting
* happens on what is displayed - whether comm, full path, basename, etc.. So
* this follows Process_writeField(COMM) and Process_writeCommand */
-const char* Process_getCommandStr(const Process* this) {
+const char* Process_getCommand(const Process* this) {
if ((Process_isUserlandThread(this) && this->settings->showThreadNames) || !this->mergedCommand.str) {
return this->cmdline;
}
@@ -1027,7 +1027,6 @@ const ProcessClass Process_class = {
.compare = Process_compare
},
.writeField = Process_writeField,
- .getCommandStr = Process_getCommandStr,
};
void Process_init(Process* this, const Settings* settings) {

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