ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_net_iface_t Struct Reference

A network backend handle: an immutable method table plus its state. More...

#include <mdl_net.h>

Detailed Description

A network backend handle: an immutable method table plus its state.

This is the object every layer above the seam passes around. It is created by a backend factory (::mdl_net_curl_create for production, or a test helper for a fake) and consumed only through the dispatchers. Holding the vtable and ctx together is what makes the substitution real: the same download loop runs against libcurl or against a mock with no code change.

Invariant
vtable is non-NULL and points to a table with all three methods populated for the whole lifetime of the handle.
ctx is whatever the backend factory stored; the dispatchers never interpret it, only forward it.
See also
mdl_net_curl_create()
Since
0.1.0

The documentation for this struct was generated from the following file: