Skip to content

purego: add structs for more architectures #474

Description

@hajimehoshi

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • Android
  • iOS

What feature would you like to be added?

Now structs are supported only for amd64 and arm64. I propose to support more architectures.

Basically there are two types of struct usages: passing/receiving structs via Register(Lib)Func, and in callbacks of NewCallback. We don't have to support both at the same time, so let's do it one by one.

Why is this needed?

I found an X API that actually passes a struct value XSyncValue (
https://xorg.freedesktop.org/archive/X11R7.7/doc/libXext/synclib.html#c_functions). This is needed for Ebitengine though this is an optional. Now Ebitengine limits architectures for this API usage, but I'd like to support more platforms if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions