summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-04-24 12:06:49 +0200
committerBenBE <BenBE@geshi.org>2021-05-23 09:22:21 +0200
commitc0d02024407411f75a4d7d5b63f26b74c727027b (patch)
tree1252f8c71d108af939daa731bccc71e1bf5125d2 /Process.h
parent7224d0e0831ee53d5028915f87dffd51ffa0d6fa (diff)
Move LinuxProcess_getCommandStr to Process_getCommandStr
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Process.h b/Process.h
index f70ab571..d07a6d49 100644
--- a/Process.h
+++ b/Process.h
@@ -284,7 +284,7 @@ typedef struct ProcessClass_ {
#define As_Process(this_) ((const ProcessClass*)((this_)->super.klass))
-#define Process_getCommand(this_) (As_Process(this_)->getCommandStr ? As_Process(this_)->getCommandStr((const Process*)(this_)) : ((const Process*)(this_))->cmdline)
+#define Process_getCommand(this_) (As_Process(this_)->getCommandStr ? As_Process(this_)->getCommandStr((const Process*)(this_)) : Process_getCommandStr((const Process*)(this_)))
#define Process_compareByKey(p1_, p2_, key_) (As_Process(p1_)->compareByKey ? (As_Process(p1_)->compareByKey(p1_, p2_, key_)) : Process_compareByKey_Base(p1_, p2_, key_))
static inline pid_t Process_getParentPid(const Process* this) {
@@ -369,4 +369,7 @@ int Process_pidCompare(const void* v1, const void* v2);
int Process_compareByKey_Base(const Process* p1, const Process* p2, ProcessField key);
+// Avoid direct calls, use Process_getCommand instead
+const char *Process_getCommandStr(const Process *this);
+
#endif

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