Mercurial > public > ostc4
comparison Discovery/Inc/logbook.h @ 269:6e78137952af write-from-sim
cleanup: do not pass large struct by value
Passing a huge struct by value is poor practice. Simply pass it by reference.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Tue, 23 Apr 2019 21:03:24 +0200 |
parents | f23b9055436f |
children | 2e58a4094770 |
comparison
equal
deleted
inserted
replaced
268:1b9847d40e81 | 269:6e78137952af |
---|---|
197 { | 197 { |
198 int8_t percentageO2; | 198 int8_t percentageO2; |
199 int8_t percentageHe; | 199 int8_t percentageHe; |
200 } SManualGas; | 200 } SManualGas; |
201 | 201 |
202 void logbook_writeSample(SDiveState state); | 202 void logbook_writeSample(SDiveState *state); |
203 void logbook_initNewdiveProfile(const SDiveState* pInfo, SSettings* pSettings); | 203 void logbook_initNewdiveProfile(const SDiveState* pInfo, SSettings* pSettings); |
204 void logbook_EndDive(void); | 204 void logbook_EndDive(void); |
205 | 205 |
206 SLogbookHeader* logbook_getCurrentHeader(void); | 206 SLogbookHeader* logbook_getCurrentHeader(void); |
207 SLogbookHeaderOSTC3 * logbook_build_ostc3header(SLogbookHeader* pLogbookHeader); | 207 SLogbookHeaderOSTC3 * logbook_build_ostc3header(SLogbookHeader* pLogbookHeader); |