Importing object type from .so lib

Hi,

How do you import an object type into Unity?
For instance, let’s say I have a .so library written in C/C++ with this inside:

Lib:

typedef struct myObject{
         // some stuff here
} myObject;

Then what do I do in Unity to get this back?

[DllImport("mylib")]
// Something?

If needed, yes I’ve looked it up on the internet, read the Unity documentation, other threads etc… the only thing I have found was this and it didn’t help me because I don’t know what’s inside myObject and I don’t need to.

Any help would be appreciated.
Thanks

Anyone?

I’ve been struggling with this for a while now, is it even possible to do what I’m asking?