This one supports being called with NULL and returns 0 in this case,
making it easier to check for stream IDs in various send functions.
}
+/******************************************************/
+/* functions below are for the H2 protocol processing */
+/******************************************************/
+
+/* returns the stream if of stream <h2s> or 0 if <h2s> is NULL */
+static inline int h2s_id(const struct h2s *h2s)
+{
+ return h2s ? h2s->id : 0;
+}
+
+
/*********************************************************/
/* functions below are I/O callbacks from the connection */
/*********************************************************/