Skip to content

Initial C API#42

Open
lu-zero wants to merge 1 commit into
rust-italia:mainfrom
lu-zero:capi
Open

Initial C API#42
lu-zero wants to merge 1 commit into
rust-italia:mainfrom
lu-zero:capi

Conversation

@lu-zero

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

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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