js-ctypes

  • Revision slug: Mozilla/js-ctypes
  • Revision title: js-ctypes
  • Revision id: 66402
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment add note about only using in chrome; 31 words added

Revision Content

js-ctypes is a library, accessed using the ctypes.jsm JavaScript code module, that lets JavaScript code call native C and C++ functions without having to write any glue code in C.

Note: js-ctypes is only available from chrome code; that is, you can only use it from within the application itself or an add-on.

Documentation

ctypes.jsm
An introduction to the ctypes.jsm code module, which you use to access the js-ctypes API.
js-ctypes reference
A reference guide to the js-ctypes API.
Using js-ctypes
A how-to guide providing code snippets and other details on how to use the js-ctypes API.

Examples

Add to iPhoto
A Firefox extension that uses js-ctypes to call Carbon and Core Foundation framework routines on Mac OS X to implement an "Add image to iPhoto" feature in Firefox.

 

View All...

Community

  • View Mozilla forums...

{{ DiscussionList("dev-extensions", "mozilla.dev.extensions") }}

Related Topics

Extensions

Revision Source

<p><strong>js-ctypes</strong> is a library, accessed using the <a href="/en/JavaScript/Code_modules/ctypes.jsm" title="en/JavaScript code modules/ctypes.jsm"><code>ctypes.jsm</code></a> JavaScript code module, that lets JavaScript code call native C and C++ functions without having to write any glue code in C.</p>
<div class="note"><strong>Note:</strong> js-ctypes is only available from chrome code; that is, you can only use it from within the application itself or an add-on.</div>
<table class="topicpage-table"> <tbody> <tr> <td> <h2 name="Documentation"><a href="/Special:Tags?tag=js-ctypes&amp;language=en" title="Special:Tags?tag=js-ctypes&amp;language=en">Documentation</a></h2> <dl> <dt><a href="/en/JavaScript/Code_modules/ctypes.jsm" title="en/JavaScript code modules/ctypes.jsm">ctypes.jsm</a></dt> <dd>An introduction to the <a href="/en/JavaScript/Code_modules/ctypes.jsm" title="en/JavaScript code modules/ctypes.jsm"><code>ctypes.jsm</code></a> code module, which you use to access the js-ctypes API.</dd> <dt><a href="/en/js-ctypes/js-ctypes_reference" title="en/js-ctypes/js-ctypes reference">js-ctypes reference</a></dt> <dd>A reference guide to the js-ctypes API.</dd> <dt><a href="/en/js-ctypes/Using_js-ctypes" title="en/js-ctypes/Using js-ctypes">Using js-ctypes<br> </a></dt> <dd>A how-to guide providing code snippets and other details on how to use the js-ctypes API.</dd> </dl> <h2><a href="/en/js-ctypes/Examples" title="en/js-ctypes/Examples">Examples</a></h2> <dl><a href="/en/js-ctypes/Examples/Add_to_iPhoto" title="en/js-ctypes/Examples/Add to iPhoto">Add to iPhoto</a> <dd>A Firefox extension that uses js-ctypes to call Carbon and Core Foundation framework routines on Mac OS X to implement an "Add image to iPhoto" feature in Firefox.</dd> </dl> <p> </p> <p><span class="alllinks"><a href="/Special:Tags?tag=js-ctypes&amp;language=en" title="Special:Tags?tag=js-ctypes&amp;language=en">View All...</a></span></p> </td> <td> <h2 name="Community">Community</h2> <ul> <li>View Mozilla forums...</li> </ul> <p>{{ DiscussionList("dev-extensions", "mozilla.dev.extensions") }}</p> <h2 name="Related_Topics">Related Topics</h2> <dl> <dd><a href="/en/Extensions" title="en/Extensions">Extensions</a></dd> </dl> </td> </tr> </tbody>
</table>
Revert to this revision