Closed
Bug 395937
Opened 18 years ago
Closed 18 years ago
js-ctypes initial landing
Categories
(Core :: js-ctypes, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mfinkle, Assigned: mfinkle)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
|
201.07 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
|
850 bytes,
text/plain
|
Details |
js-ctypes is a ffi (Foreign Function Interface) component for JS/XPCOM.
js-ctypes allows developers to call functions in dlls/shared libraries directly
from JavaScript without the need to create binary XPCOM wrappers.
I wanted to get some feedback before landing this. Should you actually want to build from this patch, put the code in "mozilla/components/js-types" and it should build.
I'll also be attaching a simple example too.
Attachment #280631 -
Flags: review?(benjamin)
| Assignee | ||
Comment 1•18 years ago
|
||
| Assignee | ||
Updated•18 years ago
|
Attachment #280632 -
Attachment mime type: application/vnd.mozilla.xul+xml → text/plain
| Assignee | ||
Comment 2•18 years ago
|
||
FYI - nsNativeMethod::Execute needs more work to support _more_ native types for arguments and return types.
Comment 3•18 years ago
|
||
Does OS X use the linux implementation or is it not supported?
Also, I think many people would prefer "unsigned short" instead of PRUint16.
| Assignee | ||
Comment 4•18 years ago
|
||
I do not currently support OSX, but the underlying libffi does support it. It needs to be added
Updated•18 years ago
|
Attachment #280631 -
Flags: review?(benjamin) → review+
| Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Other Applications → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•