... | @@ -1178,7 +1178,7 @@ uint32_t min_of_uint32(uint32_t x, uint32_t y); |
... | @@ -1178,7 +1178,7 @@ uint32_t min_of_uint32(uint32_t x, uint32_t y); |
|
* `void sl_uds_client__private_func(void);`
|
|
* `void sl_uds_client__private_func(void);`
|
|
* `app_battery__private_update_soc(void)`
|
|
* `app_battery__private_update_soc(void)`
|
|
* **Callback Functions**
|
|
* **Callback Functions**
|
|
* Callback functions should always contain an argument as this allows the caller to provide context to the function. This allows a single callback function to be used for multiple cases.If the argument is of void* then ensure that the argument is not a const.
|
|
* Callback functions should generally contain an argument as this allows the caller to provide context to the function. This allows a single callback function to be used for multiple cases.If the argument is of void* then ensure that the argument is not a const.
|
|
* Incorrect Method:
|
|
* Incorrect Method:
|
|
```c
|
|
```c
|
|
typedef void (callback*)(void);
|
|
typedef void (callback*)(void);
|
... | | ... | |