scapix icon indicating copy to clipboard operation
scapix copied to clipboard

Incomplete bindings from C API

Open boxerab opened this issue 2 years ago • 4 comments

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 avatar Jun 17 '23 13:06 boxerab

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?

Boris-Rasin avatar Jun 17 '23 16:06 Boris-Rasin

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

boxerab avatar Jun 17 '23 16:06 boxerab

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/

Boris-Rasin avatar Jun 17 '23 16:06 Boris-Rasin

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

boxerab avatar Jun 17 '23 16:06 boxerab