mozilla

Revision 348057 of js-ctypes

  • Revision slug: Mozilla/js-ctypes
  • Revision title: js-ctypes
  • Revision id: 348057
  • Created:
  • Creator: Javantea
  • 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.

Documentation

Introduction: Using js-ctypes
Getting started using ctypes.
JS-ctypes Reference
A reference guide to the js-ctypes API.
Standard OS Libraries
Documentation on the standard libraries of different operating systems. (Ex: Documentation on what function needs what DLL on Windows)
Questions
Frequently asked questions about ctypes

View All...

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.

Community

  • View Mozilla forums...{{DiscussionList("dev-extensions", "mozilla.dev.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>
        <h2 class="Documentation" id="Documentation" name="Documentation">Documentation</h2>
        <dl>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes" title="Mozilla/js-ctypes/Using_js-ctypes">Introduction: Using js-ctypes</a></dt>
          <dd>
            Getting started using ctypes.</dd>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/js-ctypes_reference" title="js-ctypes/js-ctypes_reference">JS-ctypes Reference</a></dt>
          <dd>
            A reference guide to the js-ctypes API.</dd>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/Standard_OS_Libraries" title="Mozilla/js-ctypes/Standard_Libraries_per_OS">Standard OS Libraries</a></dt>
          <dd>
            Documentation on the standard libraries of different operating systems. (Ex: Documentation on what function needs what DLL on Windows)</dd>
          <dt>
            <a href="/en-US/docs/Mozilla/js-ctypes/FAQ" title="js-ctypes/FAQ">Questions</a></dt>
          <dd>
            Frequently asked questions about ctypes</dd>
        </dl>
        <p><span class="alllinks"><a href="/en-US/docs/tag/js-ctypes" title="tag/js-ctypes">View All...</a></span></p>
        <h2 class="Tools" id="Examples" name="Examples"><a href="/en-US/docs/Mozilla/js-ctypes/Examples" title="Mozilla/js-ctypes/Examples">Examples</a></h2>
        <a href="/en-US/docs/Mozilla/js-ctypes/Examples/Add_to_iPhoto" title="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>
      </td>
      <td>
        <h2 class="Community" id="Community" name="Community">Community</h2>
        <ul>
          <li>View Mozilla forums...{{DiscussionList("dev-extensions", "mozilla.dev.extensions")}}</li>
        </ul>
        <h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related Topics</h2>
        <ul>
          <li><a href="/en-US/docs/Extensions" title="Extensions">Extensions</a></li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
Revert to this revision