• In a C native module, I want to call other jswrap functions and asign my C function as the callback.

    How to do that?
    For example,
    void mycallback();

    void mycallback(){
        jsiConsolePrint("Hello world");
    }
    jswrap_net_connect(JsVar *options, JsVar *callback, SocketType socketType); // here I want asign mycallback( ) as the callback
    
About

Avatar for Aifer @Aifer started