Closed
Bug 792813
Opened 12 years ago
Closed 12 years ago
Fill in sessionConstants.h
Categories
(Core :: WebRTC: Signaling, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ekr, Assigned: ehugg)
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
6.08 KB,
patch
|
Details | Diff | Splinter Review |
Ehugg,
This list wasn't updated.
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → ethanhugg
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 663015 [details] [diff] [review]
Fix feature list in sessionConstants.h
I moved the feature_names list into ccapi.h to be next to the enum list and updated its values.
I would be nice to have a clever way at compile-time to ensure that cc_feature_names[] gets initialized to exactly CC_FEATURE_MAX + 1 in size.
Attachment #663015 -
Flags: feedback?(ekr)
Assignee | ||
Comment 3•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #663015 -
Attachment is obsolete: true
Attachment #663015 -
Flags: feedback?(ekr)
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 663027 [details] [diff] [review]
Fix feature list in sessionConstants.h
Also found a bug with cc_msg_names. PR_STATIC_ASSERT is my new friend.
Attachment #663027 -
Flags: feedback?(ekr)
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 663027 [details] [diff] [review]
Fix feature list in sessionConstants.h
Review of attachment 663027 [details] [diff] [review]:
-----------------------------------------------------------------
::: media/webrtc/signaling/src/sipcc/core/includes/ccapi.h
@@ +327,5 @@
> +
> +/* This checks at compile-time that the cc_msg_names list
> + * is the same size as the cc_msgs_t enum
> + */
> +PR_STATIC_ASSERT(sizeof(cc_msg_names) / sizeof(char *) == CC_MSG_MAX + 1);
You probably want to use PR_ARRAY_SIZE() here instead of the explicit sizeof
Attachment #663027 -
Flags: feedback?(ekr) → feedback+
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #663027 -
Attachment is obsolete: true
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 663133 [details] [diff] [review]
Fix feature list in sessionConstants.h
Pushed to Alder: https://hg.mozilla.org/projects/alder/rev/9aaa4d60325c
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•