Renamed spdylay_frame.common as spdylay_frame.ctrl

This commit is contained in:
Tatsuhiro Tsujikawa 2012-03-30 00:07:27 +09:00
parent b8f1851aff
commit 90c2739a9c
3 changed files with 3 additions and 3 deletions

View File

@ -714,7 +714,7 @@ typedef union {
/**
* Convenient structure to inspect control frame header.
*/
spdylay_ctrl_frame common;
spdylay_ctrl_frame ctrl;
/**
* The SYN_STREAM control frame.
*/

View File

@ -56,7 +56,7 @@ void spdylay_outbound_item_free(spdylay_outbound_item *item);
/* Macros to cast spdylay_outbound_item.frame to the proper type. */
#define spdylay_outbound_item_get_ctrl_frame(ITEM) ((spdylay_frame*)ITEM->frame)
#define spdylay_outbound_item_get_ctrl_frame_type(ITEM) \
(((spdylay_frame*)ITEM->frame)->common.hd.type)
(((spdylay_frame*)ITEM->frame)->ctrl.hd.type)
#define spdylay_outbound_item_get_data_frame(ITEM) ((spdylay_data*)ITEM->frame)
#endif /* SPDYLAY_OUTBOUND_ITEM_H */

View File

@ -323,7 +323,7 @@ int spdylay_session_add_frame(spdylay_session *session,
item->pri = spdylay_session_get_pri_lowest(session);
if(frame_cat == SPDYLAY_CTRL) {
spdylay_frame *frame = (spdylay_frame*)abs_frame;
spdylay_frame_type frame_type = frame->common.hd.type;
spdylay_frame_type frame_type = frame->ctrl.hd.type;
switch(frame_type) {
case SPDYLAY_SYN_STREAM:
item->pri = frame->syn_stream.pri;