VirtualBox

Ignore:
Timestamp:
May 16, 2013 1:40:20 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85814
Message:

Main/VPX, VBoxManage: added IMachine::VideoCaptureScreens and IDisplay::{enableVideoCapture,disableVideoCapture}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r45483 r46123  
    26282628        List<Long> ret = new ArrayList<Long>(vals.length);
    26292629        for (long v : vals) {
    2630                 ret.add(v);
     2630            ret.add(v);
     2631        }
     2632        return ret;
     2633    }
     2634
     2635    public static List<Boolean> wrap(boolean[] vals) {
     2636        if (vals==null)
     2637            return null;
     2638
     2639        List<Boolean> ret = new ArrayList<Boolean>(vals.length);
     2640        for (boolean v: vals) {
     2641        ret.add(v);
    26312642        }
    26322643        return ret;
     
    27812792
    27822793    @SuppressWarnings( "unchecked")
    2783     public static <T> T[] unwrap(Class<T> wrapperClass, List<T> thisPtrs) {
     2794    public static <T> T[] unwrap(Class<T> wrapperClass, List<T> thisPtrs)
     2795    {
    27842796        if (thisPtrs==null)
    27852797            return null;
     
    27972809    public static Object queryInterface(Object obj, String uuid)
    27982810    {
    2799          try {
    2800             /* Kind of ugly, but does the job of casting */
    2801             org.mozilla.xpcom.Mozilla moz = org.mozilla.xpcom.Mozilla.getInstance();
    2802             long xpobj = moz.wrapJavaObject(obj, uuid);
    2803             return moz.wrapXPCOMObject(xpobj, uuid);
    2804          } catch (Exception e) {
    2805              return null;
    2806          }
     2811        try {
     2812           /* Kind of ugly, but does the job of casting */
     2813           org.mozilla.xpcom.Mozilla moz = org.mozilla.xpcom.Mozilla.getInstance();
     2814           long xpobj = moz.wrapJavaObject(obj, uuid);
     2815           return moz.wrapXPCOMObject(xpobj, uuid);
     2816        } catch (Exception e) {
     2817            return null;
     2818        }
    28072819    }
    28082820
    28092821    @SuppressWarnings("unchecked")
    2810     public static <T1 extends IUnknown,T2> T2[] unwrap2(Class<T1> wrapperClass1, Class<T2> wrapperClass2, List<T1> thisPtrs) {
     2822    public static <T1 extends IUnknown,T2> T2[] unwrap2(Class<T1> wrapperClass1, Class<T2> wrapperClass2, List<T1> thisPtrs)
     2823    {
    28112824        if (thisPtrs==null)  return null;
    28122825
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette