Skip to content

chore: add metadata.h#17

Merged
MasonRemaley merged 1 commit into
allyourcodebase:mainfrom
mgerb:main
Apr 13, 2026
Merged

chore: add metadata.h#17
MasonRemaley merged 1 commit into
allyourcodebase:mainfrom
mgerb:main

Conversation

@mgerb
Copy link
Copy Markdown
Contributor

@mgerb mgerb commented Feb 9, 2026

I'm using this in one of my projects and I needed the metadata extensions. There are a few more headers in the extensions directory, but I didn't bother adding them because I don't need them at this time. May want to consider adding them when this hack is removed.

I added the following to the video example to generate the bindings. I then copied the metadata specific code into c.zig.

const c = @cImport({
    @cInclude("spa/utils/result.h");
    @cInclude("spa/param/video/format-utils.h");
    @cInclude("spa/param/tag-utils.h");
    @cInclude("spa/param/props.h");
    @cInclude("spa/param/latency-utils.h");
    @cInclude("spa/debug/format.h");
    @cInclude("spa/debug/pod.h");
    @cInclude("pipewire/pipewire.h");
    @cInclude("pipewire/extensions/metadata.h");
});

@MasonRemaley
Copy link
Copy Markdown
Contributor

Whoops, sorry for letting this sit for so long! I apparently had notifications off on this repo by mistake. Thanks for the PR!

@MasonRemaley MasonRemaley merged commit 5b4930b into allyourcodebase:main Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants