Hello Hiroshi,

On 07/02/2019 06:26, Hiroshi Doyu wrote:
> I'm modifying "mirage-skeleton/device-usage/network" example to save a
> handler to "Tcpip_stack" to be used in another module later.

AFAICT, you want to use the module type Mirage_stack_lwt.V4, is this
correct? This module type is defined in
https://github.com/mirage/mirage-stack . Since it includes
Mirage_device.S, it contains a type t (it's API is best seen at
https://docs.mirage.io/mirage-stack/Mirage_stack/module-type-V4/index.html).

> What type should I use for this mirage stack if I want the same code to
> be built successfully in both cases?

So, to store the stack for both Unix and freestanding / hvt, you can use
the type Mirage_stack.V4.t, and use all functions defined in
mirage-stack on that type. Does this make sense?


best,

hannes

_______________________________________________
MirageOS-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/mirageos-devel

Reply via email to