Run clang-format and enable CI check for it (#755)
* pre-commit: Update and enable clang-format check There is newer version from clang-format so use that. We do not yet want 18 as that is little bit too new. * Format some thing by hand which clang-format "breaks" Clang-format will format some things little bit off in some cases. Format some things by hand so we get cleaner end result. * Run clang-format with ``` pre-commit run --all-files clang-format ``` We have already in previously checked places where clang-format does not make good format and ignored those (hopefully most of the things). --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
+24
-27
@@ -20,38 +20,35 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
typedef struct BACnet_Weekly_Schedule {
|
||||
BACNET_DAILY_SCHEDULE weeklySchedule[7];
|
||||
bool singleDay;
|
||||
} BACNET_WEEKLY_SCHEDULE;
|
||||
typedef struct BACnet_Weekly_Schedule {
|
||||
BACNET_DAILY_SCHEDULE weeklySchedule[7];
|
||||
bool singleDay;
|
||||
} BACNET_WEEKLY_SCHEDULE;
|
||||
|
||||
/** Decode WeeklySchedule */
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_decode(
|
||||
const uint8_t * apdu,
|
||||
int apdu_size,
|
||||
BACNET_WEEKLY_SCHEDULE * value);
|
||||
/** Decode WeeklySchedule */
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_decode(
|
||||
const uint8_t *apdu, int apdu_size, BACNET_WEEKLY_SCHEDULE *value);
|
||||
|
||||
/** Encode WeeklySchedule */
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_encode(
|
||||
uint8_t * apdu,
|
||||
const BACNET_WEEKLY_SCHEDULE * value);
|
||||
/** Encode WeeklySchedule */
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_encode(
|
||||
uint8_t *apdu, const BACNET_WEEKLY_SCHEDULE *value);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_context_encode(
|
||||
uint8_t *apdu, uint8_t tag_number,
|
||||
const BACNET_WEEKLY_SCHEDULE *value);
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_context_encode(
|
||||
uint8_t *apdu, uint8_t tag_number, const BACNET_WEEKLY_SCHEDULE *value);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_context_decode(
|
||||
const uint8_t *apdu, int apdu_size, uint8_t tag_number,
|
||||
BACNET_WEEKLY_SCHEDULE *value);
|
||||
BACNET_STACK_EXPORT
|
||||
int bacnet_weeklyschedule_context_decode(
|
||||
const uint8_t *apdu,
|
||||
int apdu_size,
|
||||
uint8_t tag_number,
|
||||
BACNET_WEEKLY_SCHEDULE *value);
|
||||
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_weeklyschedule_same(
|
||||
const BACNET_WEEKLY_SCHEDULE *value1,
|
||||
const BACNET_WEEKLY_SCHEDULE *value2);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_weeklyschedule_same(
|
||||
const BACNET_WEEKLY_SCHEDULE *value1, const BACNET_WEEKLY_SCHEDULE *value2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user