-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation and member names for ChipZclRawBuffer_t. #857
Improve documentation and member names for ChipZclRawBuffer_t. #857
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we doxygen headers?
We can, and this header already uses comments in the general format doxygen recognizes. @woody-apple are you just looking for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Also fixes a memory leak in chipZclProcessIncoming that became more obvious with the new documentation.
@turon The test failure is:
That doesn't seem related to these changes. Is that test known to intermittently fail? |
Thanks for doing this. The only additional request for a future pass would be decorating the |
@@ -97,5 +105,8 @@ ChipZclStatus_t chipZclProcessIncoming(uint8_t * rawBuffer, uint16_t rawBufferLe | |||
chipZclDecodeZclHeader(buffer, context); | |||
chipZclClusterCommandParse(context); | |||
|
|||
chipZclRawFree(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for these to be allocated instead of just placed on the stack?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good question; I mostly kept the existing setup there, but I agree that in general it would make a lot of sense to me to put the context and the buffer on the stack...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #898
#897 does that. |
Also fixes a memory leak in chipZclProcessIncoming that became more obvious
with the new documentation.
Problem
It wasn't immediately clear to me what some of the ChipZclRawBuffer_t APIs did.
Summary of Changes
Documentation improvements, memory leak fix.
fixes #856