lib/libvarnishapi/vsl_dispatch.c
static struct vtx *
vtx_lookup(const struct VSLQ *vslq, unsigned vxid)
{
	struct vtx_key lkey, *key;
	struct vtx *vtx;

	AN(vslq);
	lkey.vxid = vxid;
	key = VRBT_FIND(vtx_tree, &vslq->tree, &lkey);
	if (key == NULL)
		return (NULL);
	CAST_OBJ_NOTNULL(vtx, (void *)key, VTX_MAGIC);
	return (vtx);
}
/* Lookup a vtx by vxid from the managed list */
Lookup a vtx by vxid from the managed list
Lookup a vtx by vxid from the managed list
static struct vtx *
vtx_lookup(const struct VSLQ *vslq, unsigned vxid)
{
	struct vtx_key lkey, *key;
	struct vtx *vtx;
	AN(vslq);
	lkey.vxid = vxid;
	key = VRBT_FIND(vtx_tree, &vslq->tree, &lkey);
	if (key == NULL)
		return (NULL);
	CAST_OBJ_NOTNULL(vtx, (void *)key, VTX_MAGIC);
	return (vtx);
}
static struct vtx * vtx_lookup ( const struct VSLQ * vslq , unsigned vxid ) { struct vtx_key lkey , * key ; struct vtx * vtx ; AN ( vslq ) ; lkey . vxid = vxid ; key = VRBT_FIND ( vtx_tree , & vslq -> tree , & lkey ) ; if ( key == NULL ) return ( NULL ) ; CAST_OBJ_NOTNULL ( vtx , ( void * ) key , VTX_MAGIC ) ; return ( vtx ) ; }
Lookup a vtx by vxid from the managed list
Lookup a vtx by vxid from the managed list