Renamed spdylay_frame.common as spdylay_frame.ctrl
This commit is contained in:
parent
b8f1851aff
commit
90c2739a9c
|
@ -714,7 +714,7 @@ typedef union {
|
||||||
/**
|
/**
|
||||||
* Convenient structure to inspect control frame header.
|
* Convenient structure to inspect control frame header.
|
||||||
*/
|
*/
|
||||||
spdylay_ctrl_frame common;
|
spdylay_ctrl_frame ctrl;
|
||||||
/**
|
/**
|
||||||
* The SYN_STREAM control frame.
|
* The SYN_STREAM control frame.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -56,7 +56,7 @@ void spdylay_outbound_item_free(spdylay_outbound_item *item);
|
||||||
/* Macros to cast spdylay_outbound_item.frame to the proper type. */
|
/* 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(ITEM) ((spdylay_frame*)ITEM->frame)
|
||||||
#define spdylay_outbound_item_get_ctrl_frame_type(ITEM) \
|
#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)
|
#define spdylay_outbound_item_get_data_frame(ITEM) ((spdylay_data*)ITEM->frame)
|
||||||
|
|
||||||
#endif /* SPDYLAY_OUTBOUND_ITEM_H */
|
#endif /* SPDYLAY_OUTBOUND_ITEM_H */
|
||||||
|
|
|
@ -323,7 +323,7 @@ int spdylay_session_add_frame(spdylay_session *session,
|
||||||
item->pri = spdylay_session_get_pri_lowest(session);
|
item->pri = spdylay_session_get_pri_lowest(session);
|
||||||
if(frame_cat == SPDYLAY_CTRL) {
|
if(frame_cat == SPDYLAY_CTRL) {
|
||||||
spdylay_frame *frame = (spdylay_frame*)abs_frame;
|
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) {
|
switch(frame_type) {
|
||||||
case SPDYLAY_SYN_STREAM:
|
case SPDYLAY_SYN_STREAM:
|
||||||
item->pri = frame->syn_stream.pri;
|
item->pri = frame->syn_stream.pri;
|
||||||
|
|
Loading…
Reference in New Issue