On Tuesday, December 3, 2013 6:25:53 AM UTC+1, [email protected] wrote:
> On Monday, December 2, 2013 9:28:07 PM UTC+5:30, Jan Jongboom wrote:
> 
> > On Monday, December 2, 2013 12:08:20 PM UTC+1, [email protected] wrote:
> 
> > 
> 
> > > Hi,
> 
> > 
> 
> > > 
> 
> > 
> 
> > > I am investigating how API in B2G works. now i am trying to call C++ 
> > > function from javascript. My target is to create a sample API. Help me 
> > > with some reference Links.
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Thanks.
> 
> > 
> 
> > 
> 
> > 
> 
> > Can you elaborate what you want to do here? What kind of C++ functions do 
> > you want to call from JS?
> 
> 
> 
> normal c++ function to access gallery files... no system call. i am new to 
> B2G and new to integrating c++ with JS. I searched and found that we can able 
> to call c++ functions using XPCOM in firefox (Correct me if i am wrong), but 
> still finding clear steps on how to use that in B2G for creating API. Help me 
> with some links for the same.

Yes, you can call C++ code from XPCOM, but you cannot load XPCom modules in 
Firefox OS *unless* you make your own builds. If that's OK, check out f.e. 
dom/inputmethod/ where we implemented the inputmethod API (it has frame 
scripts, IPC and a public API).
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to