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

Incomplete bindings from C API #50

Open
boxerab opened this issue Jun 17, 2023 · 4 comments
Open

Incomplete bindings from C API #50

boxerab opened this issue Jun 17, 2023 · 4 comments

Comments

@boxerab
Copy link

boxerab commented Jun 17, 2023

Hello! Very cool project.

I tried to integrate scapix into my open source codec project

https://github.com/GrokImageCompression/grok/tree/scapix

When I compile, I don't get a complete binding for any language. In fact, most API methods are missing.
The library has a C API, but the implementation is in C++. Any ideas why this might be the case ?
I assume that it would work for C API as C is a subset of C++.

Thanks!

@boxerab boxerab changed the title Incomplete header generation in all languages Incomplete bindings from C API Jun 17, 2023
@Boris-Rasin
Copy link
Member

Scapix currently doesn't support bridging global functions, as defined in your C API.

Scapix can bridge C++ classes, with static and non-static member functions.

Do you have a public C++ interface for your library?

@boxerab
Copy link
Author

boxerab commented Jun 17, 2023

Thanks, I can easily create one. How about enums, are they supported? Is the only issue with the global functions ?

@Boris-Rasin
Copy link
Member

Enums are supported, but not all C++ features are supported.

Here is is a list of supported types:
https://www.scapix.com/language_bridge/types/

@boxerab
Copy link
Author

boxerab commented Jun 17, 2023

Thanks. I have C style enums, but they weren't getting parsed.

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

No branches or pull requests

2 participants