js-ctypes

  • Revision slug: Mozilla/js-ctypes
  • Revision title: js-ctypes
  • Revision id: 328863
  • Created:
  • Creator: Noitidart
  • Is current revision? No
  • Comment

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.
Standard Libraries per OS (will link after page is approved, it is under technical review)
Documentation on the standard libraries of differnt operating systems. (Ex: Documentation on the DLL files of Windows)
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-US/docs/Mozilla/js-ctypes/Using_js-ctypes" title="en-US/docs/Mozilla/js-ctypes/Using_js-ctypes">Introduction: Using js-ctypes</a></dt>
          <dd>
            Getting started using ctypes.</dd>
        </dl>
        <dl>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/js-ctypes_reference" title="en-US/docs/js-ctypes/js-ctypes_reference">JS-ctypes Reference</a></dt>
          <dd>
            A reference guide to the js-ctypes API.</dd>
          <dt>
            Standard Libraries per OS (will link after page is approved, it is under technical review)</dt>
          <dd>
            Documentation on the standard libraries of differnt operating systems. (Ex: Documentation on the DLL files of Windows)</dd>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/FAQ" title="en-US/docs/js-ctypes/FAQ">Questions</a></dt>
          <dd>
            Frequently asked questions about ctypes</dd>
        </dl>
        <h2 id="Examples"><a href="/en-US/docs/Mozilla/js-ctypes/Examples" title="en-US/docs/Mozilla/js-ctypes/Examples">Examples</a></h2>
        <a href="/en-US/docs/Mozilla/js-ctypes/Examples/Add_to_iPhoto" title="en-US/docs/Mozilla/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>&nbsp;</p>
        <p><span class="alllinks"><a href="/en-US/docs/tag/js-ctypes" title="/en-US/docs/tag/js-ctypes">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>
<p>&nbsp;</p>
Revert to this revision