js-ctypes

  • Revision slug: Mozilla/js-ctypes
  • Revision title: js-ctypes
  • Revision id: 66405
  • Created:
  • Creator: Archaeopteryx
  • Is current revision? No
  • Comment 18 words added, 3 words removed

Revision Content

js-ctypes allows application and extension code to call back and forth to native code written in C. C++ support is limited, see {{ bug("505907") }} for full support. Unlike binary XPCOM components, It allows developers to ship a single binary for use with multiple versions of Firefox.

Note: js-ctypes is only available from chrome code; that is, ctypes is not available to websites, only application and extension code.
Introduction: Using js-ctypes
Getting started using ctypes.
JS-ctypes Reference
A reference guide to the js-ctypes API.
Questions
Frequently asked questions about ctypes

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") }}

Extensions

Revision Source

<p><strong>js-ctypes</strong> allows application and extension code to call back and forth to native code written in C. C++ support is limited, see {{ bug("505907") }} for full support. Unlike binary XPCOM components, It allows developers to ship a single binary for use with multiple versions of Firefox.</p>
<div class="note"><strong>Note:</strong> js-ctypes is only available from chrome code; that is, ctypes is not available to websites, only application and extension code.</div>
<table class="topicpage-table"> <tbody> <tr> <td> <dl> <dt><a href="/en/js-ctypes/Using_js-ctypes" title="en/js-ctypes/Using js-ctypes">Introduction: Using js-ctypes<br> </a></dt> <dd>Getting started using ctypes.</dd> </dl> <dl> <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/FAQ" title="en/js-ctypes/FAQ">Questions</a></dt> <dd>Frequently asked questions about ctypes</dd> </dl> <h2 id="Examples"><a href="/en/js-ctypes/Examples" title="en/js-ctypes/Examples">Examples</a></h2> <a href="/en/js-ctypes/Examples/Add_to_iPhoto" title="en/js-ctypes/Examples/Add to iPhoto">Add to iPhoto</a> <dl> <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 id="Community" name="Community">Community</h2> <ul> <li>View Mozilla forums...</li> </ul> <p>{{ DiscussionList("dev-extensions", "mozilla.dev.extensions") }}</p> <h2 id="Related_Topics" 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