From 4eb443926f9944f4c100b1aabfb5553cbbd98874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 21 Oct 2020 21:26:05 +0200 Subject: Hold only a const version of Settings in Process --- Process.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Process.h') 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); -- cgit v1.2.3