OBJ_TYPE_DGRAM, /* object is a struct quic_dgram */
#endif
OBJ_TYPE_HATERM, /* object is a struct hstream */
+ OBJ_TYPE_HALOAD, /* object is a struct hxstream */
OBJ_TYPE_ACME_RSLV, /* object is a struct acme_rslv */
OBJ_TYPE_ENTRIES /* last one : number of entries */
} __attribute__((packed)) ;
#include <haproxy/check-t.h>
#include <haproxy/connection-t.h>
#include <haproxy/hstream-t.h>
+#include <haproxy/hldstream-t.h>
#include <haproxy/listener-t.h>
#include <haproxy/obj_type-t.h>
#include <haproxy/pool.h>
return __objt_acme_rslv(t);
}
+static inline struct hldstream *__objt_hldstream(enum obj_type *t)
+{
+ return container_of(t, struct hldstream, obj_type);
+}
+
+static inline struct hldstream *objt_hldstream(enum obj_type *t)
+{
+ if (!t || *t != OBJ_TYPE_HALOAD)
+ return NULL;
+
+ return __objt_hldstream(t);
+}
+
#ifdef USE_QUIC
static inline struct quic_dgram *__objt_dgram(enum obj_type *t)
{