Hi, I have estarted a personal project and i am new on wbkit development. I have a question about the posibility of using regular expression on JSStaticFunction struct name.. so i can resolve every methos of a class with an unique funcrtion..
My idea is to hace a fucntion that conects to a socket where the "core" of the class is available.. so i can do something like.. static JSValueRef myclass_mymethod(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception) { // get the name of the funcion called //open a socket and call to a REST service } static const JSStaticFunction class_staticfuncs[] ={ { ".*", myclass_mymethod, kJSPropertyAttributeReadOnly }, { NULL, NULL, 0 } }; The idea is to create a bridge betwing JS and a core accesible via sockets/Json.. Regards.
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev