Re: JS-ctypes to call .so file

2014-06-03 Thread savani1amazon
found solution .. http://stackoverflow.com/questions/9152142/mozilla-use-a-c-dll-with-js-ctypes it worked. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

JS-ctypes to call .so file

2014-06-03 Thread savani1amazon
I did following 1. main.c #include int add(int a, int b) { return a + b; } 2. gcc -fPIC -c main.c 3. gcc -shared -o main.so main.o 4. copied main.so file to content folder. 5. started my extension and called on following code in html in the extension const {utils:Cu} = Components; alert(

Re: xpcom supported

2014-06-02 Thread savani1amazon
in above code i get exception Components.classes not defined. when i try to put simple code in the html file ( loaded via a menu option of the extension ) try { var Cc = Components.classes["@amazon.com/MyComponent;1"]; alert("Cc" + Cc); } catch (errr){ alert(errr) } _

Re: xpcom supported

2014-06-02 Thread savani1amazon
Thank you i see no messages indicating whether it loaded in browser console this simply means that its not getting picked up? are these correct configurations ? chrome.manifest --- content helloworld content/ resource helloworld content/ interfaces components/MyComponent

xpcom supported

2014-06-02 Thread savani1amazon
developing .so / dylib / .dll using xulrunner sdk and then calling it in extension in javascript is that still supported. i see very poor documentation on the web on it. and no good working example. can someone confirm latest xulrunner sdk supports and an extension can be developed using c++ xpc