VirtualBox

Changeset 28914 in vbox


Ignore:
Timestamp:
Apr 29, 2010 5:28:51 PM (15 years ago)
Author:
vboxsync
Message:

xpcom: couple functions needed by java bridge

Location:
trunk/src/libs/xpcom18a4/xpcom/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nsID.cpp

    r1 r28914  
    139139}
    140140
     141#ifdef VBOX
     142void nsID::ToProvidedString(char (&dest)[NSID_LENGTH]) const
     143{
     144  PR_snprintf(dest, NSID_LENGTH, gIDFormat,
     145              m0, (PRUint32) m1, (PRUint32) m2,
     146              (PRUint32) m3[0], (PRUint32) m3[1], (PRUint32) m3[2],
     147              (PRUint32) m3[3], (PRUint32) m3[4], (PRUint32) m3[5],
     148              (PRUint32) m3[6], (PRUint32) m3[7]);
     149}
     150#endif
     151
     152
  • trunk/src/libs/xpcom18a4/xpcom/base/nsID.h

    r1 r28914  
    4343#ifndef nscore_h___
    4444#include "nscore.h"
     45#endif
     46
     47#ifdef VBOX
     48#define NSID_LENGTH 39
    4549#endif
    4650
     
    98102   */
    99103  NS_COM char* ToString() const;
     104
     105#ifdef VBOX
     106  /**
     107   * nsID string encoder. Builds a string in
     108   * {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format, into a char[NSID_LENGTH]
     109   * buffer provided by the caller (for instance, on the stack).
     110   */
     111  NS_COM void ToProvidedString(char (&dest)[NSID_LENGTH]) const;
     112#endif
     113
    100114  //@}
    101115};
     
    150164#endif
    151165
     166
Note: See TracChangeset for help on using the changeset viewer.

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