WebVM

Greetings from a sunny Guildford,

We are happy to announce a new WebVM SDK 0.13.4546 UPDATE release.

This release contains NPAPI WebVM plugins for Firefox and IRIS, it also contains the awaited widl2c tool which replaces JIDL.

widl2c

widl2c processes WebIDL XML files in order to generate C stub code for the interface descriptions (NEW: also including the generation of module entry points).

So in order to use widl2c you need to generate WebIDL XML from all WebIDL files you want to create C stub code for using the widlproc by Aplix.

Example commands

  1. Generate WebIDL XML from WebIDLs:

    ; widlproc bondi/trunk/interfaces/Common/idl/bondi.widl > bondi.wxml

    ; widlproc bondi/trunk/interfaces/filesystem/idl/filesystem.widl > filesystem.wxml

  2. Generate C stub code from the WebIDL XML files as follows:

    ; mkdir outdir

    ; java -jar widl2c.jar outdir bondi.wxml filesystem.wxml

    ; ls outdir

    bondi.c
    bondi_BONDIErrorCallback_decl.c
    bondi_BONDIErrorCallback_decl.h
    bondi_BONDIErrorCallback_impl.c
    bondi_BONDIError_decl.c
    bondi_BONDIError_decl.h
    bondi_BONDIError_impl.c
    bondi_BONDIPendingOperation_decl.c
    bondi_BONDIPendingOperation_decl.h
    bondi_BONDIPendingOperation_impl.c
    bondi_BONDISecurityError_decl.c
    bondi_BONDISecurityError_decl.h
    bondi_BONDISecurityError_impl.c
    bondi_BONDISuccessCallback_decl.c
    bondi_BONDISuccessCallback_decl.h
    bondi_BONDISuccessCallback_impl.c
    bondi_BONDI_decl.c
    bondi_BONDI_decl.h
    bondi_BONDI_impl.c
    bondi_Error_decl.c
    bondi_Error_decl.h
    bondi_Error_impl.c
    filesystem.c
    filesystem_FileStream_decl.c
    filesystem_FileStream_decl.h
    filesystem_FileStream_impl.c
    filesystem_FileSystemListener_decl.c
    filesystem_FileSystemListener_decl.h
    filesystem_FileSystemListener_impl.c
    filesystem_FileSystemManager_decl.c
    filesystem_FileSystemManager_decl.h
    filesystem_FileSystemManager_impl.c
    filesystem_FileSystemSuccessCallback_decl.c
    filesystem_FileSystemSuccessCallback_decl.h
    filesystem_FileSystemSuccessCallback_impl.c
    filesystem_File_decl.c
    filesystem_File_decl.h
    filesystem_File_impl.c

Finally implement the _impl.c files.

Please follow the updated tutorial for further details about how to implement WebVM native modules.

Currently there is no Linux version of this new API version available yet, but it will follow shortly.

You can re-use your WebVM SDK download URL from your mail Inbox or re-register at sdk.webvm.net. You can also check here to ensure you are running the very latest WebVM.