public static final int XPCOMGlueStartup (byte[] place) { lock.lock(); try { return _XPCOMGlueStartup(place); } finally { lock.unlock(); } } public static final native int _XPCOMGlueShutdown ();
public static final int XPCOMGlueShutdown () { lock.lock(); try { return _XPCOMGlueShutdown(); } finally { lock.unlock(); } } }
public static final int GRE_GetGREPathWithProperties (GREVersionRange versions, int versionsLength, GREProperty properties, int propertiesLength, int /*long*/ buffer, int buflen) { lock.lock(); try { return _GRE_GetGREPathWithProperties(versions, versionsLength, properties, propertiesLength, buffer, buflen); } finally { lock.unlock(); } } /** @param place cast=(const char *) */
GREVersionRange range = new GREVersionRange (); byte[] bytes = MozillaDelegate.wcsToMbcs (null, GRERANGE_LOWER, true); long /*int*/ lower = C.malloc (bytes.length); range.upperInclusive = UpperRangeInclusive; GREProperty property = new GREProperty (); bytes = MozillaDelegate.wcsToMbcs (null, PROPERTY_ABI, true); long /*int*/ name = C.malloc (bytes.length); int rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 1, greBuffer, length); rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */ if (rc != XPCOM.NS_OK) { C.memmove (lower, bytes, bytes.length); range.lower = lower; rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */
range = new GREVersionRange (); } catch (NoClassDefFoundError e) { range.upperInclusive = UpperRangeInclusive; GREProperty property = new GREProperty (); bytes = MozillaDelegate.wcsToMbcs (null, PROPERTY_ABI, true); int /*long*/ name = C.malloc (bytes.length); int rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 1, greBuffer, length); rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */ if (rc != XPCOM.NS_OK) { C.memmove (lower, bytes, bytes.length); range.lower = lower; rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */
public static final int XPCOMGlueStartup (byte[] place) { lock.lock(); try { return _XPCOMGlueStartup(place); } finally { lock.unlock(); } } public static final native int _XPCOMGlueShutdown ();
public static final int XPCOMGlueShutdown () { lock.lock(); try { return _XPCOMGlueShutdown(); } finally { lock.unlock(); } } }
public static final int GRE_GetGREPathWithProperties (GREVersionRange versions, int versionsLength, GREProperty properties, int propertiesLength, int /*long*/ buffer, int buflen) { lock.lock(); try { return _GRE_GetGREPathWithProperties(versions, versionsLength, properties, propertiesLength, buffer, buflen); } finally { lock.unlock(); } } /** @param place cast=(const char *) */
range = new GREVersionRange (); } catch (NoClassDefFoundError e) { range.upperInclusive = UpperRangeInclusive; GREProperty property = new GREProperty (); bytes = MozillaDelegate.wcsToMbcs (null, PROPERTY_ABI, true); long /*int*/ name = C.malloc (bytes.length); int rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 1, greBuffer, length); rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */ if (rc != XPCOM.NS_OK) { C.memmove (lower, bytes, bytes.length); range.lower = lower; rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */
public static final int XPCOMGlueStartup (byte[] place) { lock.lock(); try { return _XPCOMGlueStartup(place); } finally { lock.unlock(); } } public static final native int _XPCOMGlueShutdown ();
public static final int XPCOMGlueShutdown () { lock.lock(); try { return _XPCOMGlueShutdown(); } finally { lock.unlock(); } } }
public static final int GRE_GetGREPathWithProperties (GREVersionRange versions, int versionsLength, GREProperty properties, int propertiesLength, long /*int*/ buffer, int buflen) { lock.lock(); try { return _GRE_GetGREPathWithProperties(versions, versionsLength, properties, propertiesLength, buffer, buflen); } finally { lock.unlock(); } } /** @param place cast=(const char *) */
range = new GREVersionRange (); } catch (NoClassDefFoundError e) { range.upperInclusive = UpperRangeInclusive; GREProperty property = new GREProperty (); bytes = MozillaDelegate.wcsToMbcs (null, PROPERTY_ABI, true); int /*long*/ name = C.malloc (bytes.length); int rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 1, greBuffer, length); rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */ if (rc != XPCOM.NS_OK) { C.memmove (lower, bytes, bytes.length); range.lower = lower; rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */
public static final int XPCOMGlueStartup (byte[] place) { lock.lock(); try { return _XPCOMGlueStartup(place); } finally { lock.unlock(); } } public static final native int _XPCOMGlueShutdown ();
public static final int XPCOMGlueShutdown () { lock.lock(); try { return _XPCOMGlueShutdown(); } finally { lock.unlock(); } } }
public static final int GRE_GetGREPathWithProperties (GREVersionRange versions, int versionsLength, GREProperty properties, int propertiesLength, long /*int*/ buffer, int buflen) { lock.lock(); try { return _GRE_GetGREPathWithProperties(versions, versionsLength, properties, propertiesLength, buffer, buflen); } finally { lock.unlock(); } } /** @param place cast=(const char *) */
range = new GREVersionRange (); } catch (NoClassDefFoundError e) { range.upperInclusive = UpperRangeInclusive; GREProperty property = new GREProperty (); bytes = MozillaDelegate.wcsToMbcs (null, PROPERTY_ABI, true); int /*long*/ name = C.malloc (bytes.length); int rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 1, greBuffer, length); rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */ if (rc != XPCOM.NS_OK) { C.memmove (lower, bytes, bytes.length); range.lower = lower; rc = XPCOMInit.GRE_GetGREPathWithProperties (range, 1, property, 0, greBuffer, length); /* note: propertiesLength is 0 */
public static final int XPCOMGlueStartup (byte[] place) { lock.lock(); try { return _XPCOMGlueStartup(place); } finally { lock.unlock(); } } public static final native int _XPCOMGlueShutdown ();
public static final int XPCOMGlueShutdown () { lock.lock(); try { return _XPCOMGlueShutdown(); } finally { lock.unlock(); } } }
public static final int GRE_GetGREPathWithProperties (GREVersionRange versions, int versionsLength, GREProperty properties, int propertiesLength, int /*long*/ buffer, int buflen) { lock.lock(); try { return _GRE_GetGREPathWithProperties(versions, versionsLength, properties, propertiesLength, buffer, buflen); } finally { lock.unlock(); } } /** @param place cast=(const char *) */