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:
@@ -23,7 +23,8 @@
|
||||
* @param value [in] pointer to the BACNET_APPLICATION_DATA_VALUE structure
|
||||
* which is packed with the decoded value from the ReadProperty request.
|
||||
*/
|
||||
typedef void (*bacnet_read_write_value_callback_t)(uint32_t device_instance,
|
||||
typedef void (*bacnet_read_write_value_callback_t)(
|
||||
uint32_t device_instance,
|
||||
BACNET_READ_PROPERTY_DATA *rp_data,
|
||||
BACNET_APPLICATION_DATA_VALUE *value);
|
||||
|
||||
@@ -35,7 +36,8 @@ typedef void (*bacnet_read_write_value_callback_t)(uint32_t device_instance,
|
||||
* @param segmentation [in] segmentation flag
|
||||
* @param vendor_id [in] vendor identifier
|
||||
*/
|
||||
typedef void (*bacnet_read_write_device_callback_t)(uint32_t device_instance,
|
||||
typedef void (*bacnet_read_write_device_callback_t)(
|
||||
uint32_t device_instance,
|
||||
unsigned max_apdu,
|
||||
int segmentation,
|
||||
uint16_t vendor_id);
|
||||
@@ -53,13 +55,15 @@ bool bacnet_read_write_idle(void);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_read_write_busy(void);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_read_property_queue(uint32_t device_id,
|
||||
bool bacnet_read_property_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_real_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_real_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
@@ -67,14 +71,16 @@ bool bacnet_write_property_real_queue(uint32_t device_id,
|
||||
uint8_t priority,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_null_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_null_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
uint8_t priority,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_enumerated_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_enumerated_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
@@ -82,7 +88,8 @@ bool bacnet_write_property_enumerated_queue(uint32_t device_id,
|
||||
uint8_t priority,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_unsigned_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_unsigned_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
@@ -90,7 +97,8 @@ bool bacnet_write_property_unsigned_queue(uint32_t device_id,
|
||||
uint8_t priority,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_signed_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_signed_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
@@ -98,7 +106,8 @@ bool bacnet_write_property_signed_queue(uint32_t device_id,
|
||||
uint8_t priority,
|
||||
uint32_t array_index);
|
||||
BACNET_STACK_EXPORT
|
||||
bool bacnet_write_property_boolean_queue(uint32_t device_id,
|
||||
bool bacnet_write_property_boolean_queue(
|
||||
uint32_t device_id,
|
||||
BACNET_OBJECT_TYPE object_type,
|
||||
uint32_t object_instance,
|
||||
BACNET_PROPERTY_ID object_property,
|
||||
|
||||
Reference in New Issue
Block a user