... | ... | @@ -733,7 +733,7 @@ typedef struct { |
|
|
* `void sl_uds_client__private_func(void);`
|
|
|
* `app_battery__private_update_soc(void)`
|
|
|
* **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.
|
|
|
* 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.
|
|
|
* Incorrect Method:
|
|
|
```c
|
|
|
typedef void (callback*)(void);
|
... | ... | |