Closed Bug 395937 Opened 18 years ago Closed 18 years ago

js-ctypes initial landing

Categories

(Core :: js-ctypes, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mfinkle, Assigned: mfinkle)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

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)
Attachment #280632 - Attachment mime type: application/vnd.mozilla.xul+xml → text/plain
FYI - nsNativeMethod::Execute needs more work to support _more_ native types for arguments and return types.
Does OS X use the linux implementation or is it not supported? Also, I think many people would prefer "unsigned short" instead of PRUint16.
I do not currently support OSX, but the underlying libffi does support it. It needs to be added
Attachment #280631 - Flags: review?(benjamin) → review+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Blocks: 444134
Product: Other Applications → Core
bugspam
Assignee: nobody → mark.finkle
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: