summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-21 21:26:05 +0200
committercgzones <cgzones@googlemail.com>2020-10-26 19:30:38 +0100
commit4eb443926f9944f4c100b1aabfb5553cbbd98874 (patch)
tree96f71b219565cc36a98e447aebfe5ae46b94ec49 /Process.h
parent71091724319c85574f5dbb11230ef5fe463f12fd (diff)
Hold only a const version of Settings in Process
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Process.h b/Process.h
index 440cbb1c..2432918f 100644
--- a/Process.h
+++ b/Process.h
@@ -59,7 +59,7 @@ struct Settings_;
typedef struct Process_ {
Object super;
- struct Settings_* settings;
+ const struct Settings_* settings;
unsigned long long int time;
pid_t pid;
@@ -119,7 +119,7 @@ extern ProcessFieldData Process_fields[];
extern ProcessPidColumn Process_pidColumns[];
extern char Process_pidFormat[20];
-typedef Process*(*Process_New)(struct Settings_*);
+typedef Process*(*Process_New)(const struct Settings_*);
typedef void (*Process_WriteField)(const Process*, RichString*, ProcessField);
typedef struct ProcessClass_ {
@@ -164,7 +164,7 @@ void Process_done(Process* this);
extern const ProcessClass Process_class;
-void Process_init(Process* this, struct Settings_* settings);
+void Process_init(Process* this, const struct Settings_* settings);
void Process_toggleTag(Process* this);

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