Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial C API #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Initial C API #42

wants to merge 1 commit into from

Conversation

lu-zero
Copy link
Collaborator

@lu-zero lu-zero commented Feb 23, 2022

To start discussing on the API itself:

  • Function signatures dgc_{struct}_{action}(s: *mut Struct, args..., out: *mut *mut Out) -> *const ErrorType
  • All the structs are opaque and they get accessors using the previous pattern

@lmammino
Copy link
Member

Is there any way to auto-generate these?

I am coming with 0 expertise to this topic, but at first glance it would seem quite tedious and error-prone having to implement all of this manually and even worse having to keep things in sync over time...

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