wooky/zupnp
UPnP/DLNA library for Zig
ZUPnP is a Zig library which features:
This library is a high-level wrapper around the ubiquitous pupnp (Portable SDK for UPnP Devices, AKA libupnp) library, featuring a convenient API with some Zig-specific specialties thrown in.
When working with the library in your own code, you should add these lines to your build.zig's build() function:
const exe = b.addExecutable(...);
exe.addIncludeDir("/usr/include/upnp");
exe.linkLibC();
exe.linkSystemLibrary("upnp");
exe.linkSystemLibrary("ixml");
exe.addPackagePath("zupnp", "zupnp/src/lib.zig");
...
Detailed documentation is in progress. For now, check the test directory to see how some features work.
Some examples are included in the samples directory. Those include:
Licensed under the MIT license.