Hi All, I need info regarding accessing Gecko layer (XPCom component) to GAIA Layer (Js component).
I have one scenario like: native side (Gecko layer) will receive TCP request for some data, and that request need some response, response should be sent immediately. for sending response data has to be filled from GAIA application (mediaDb). IS there any way how I can achieve this scenario. As my understanding I have 2 options: 1. When gecko(C++ native .so) receives request, send notification to GAIA layer and adding lock after sending notification. Once GAIA receives notification data will be filled with invoking Gecko API and there need trigger the signal which was locked. here more locks may occur as other side may be simultaneously requesting by different clients. 2. Push DB to the Gecko layer(creating one more same DB) and update when initially GAIA application was started. And keep on updating if any changes are occurred to the MediaDB. please update me which will be the best approach. Or Is there any other approach(API/registration) of function methods of Gecko are available so that my gecko layer can directly invoke Js method which will return my required data as out arguments. please help me in this scenario ASAP. waiting for reply. many thanks _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
