diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-21 21:26:05 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-26 19:30:38 +0100 |
commit | 4eb443926f9944f4c100b1aabfb5553cbbd98874 (patch) | |
tree | 96f71b219565cc36a98e447aebfe5ae46b94ec49 /Process.h | |
parent | 71091724319c85574f5dbb11230ef5fe463f12fd (diff) |
Hold only a const version of Settings in Process
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |