VirtualBox

Changeset 18821 in vbox


Ignore:
Timestamp:
Apr 7, 2009 1:19:58 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45824
Message:

Cbinding: this_ => pThis

Location:
trunk/src/VBox/Main/cbinding
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c

    r18806 r18821  
    3333static char *nsIDToString(nsID *guid);
    3434static void listVMs(IVirtualBox *virtualBox, ISession *session);
    35 static void startVM(IVirtualBox *virtualBox, ISession *session, nsID *id);
    3635
    3736int volatile g_refcount = 0;
     
    8281
    8382static nsresult OnMousePointerShapeChange(
    84     IConsoleCallback *this_,
     83    IConsoleCallback *pThis,
    8584    PRBool visible,
    8685    PRBool alpha,
     
    9695
    9796static nsresult OnMouseCapabilityChange(
    98     IConsoleCallback *this_,
     97    IConsoleCallback *pThis,
    9998    PRBool supportsAbsolute,
    10099    PRBool needsHostCursor
     
    105104
    106105static nsresult OnKeyboardLedsChange(
    107     IConsoleCallback *this_,
     106    IConsoleCallback *pThis,
    108107    PRBool numLock,
    109108    PRBool capsLock,
     
    115114
    116115static nsresult OnStateChange(
    117     IConsoleCallback *this_,
     116    IConsoleCallback *pThis,
    118117    PRUint32 state
    119118) {
     
    124123}
    125124
    126 static nsresult OnAdditionsStateChange(IConsoleCallback *this_ )
    127 {
    128     printf("%d here\n",__LINE__);
    129     return 0;
    130 }
    131 
    132 static nsresult OnDVDDriveChange(IConsoleCallback *this_ )
    133 {
    134     printf("%d here\n",__LINE__);
    135     return 0;
    136 }
    137 
    138 static nsresult OnFloppyDriveChange(IConsoleCallback *this_ )
     125static nsresult OnAdditionsStateChange(IConsoleCallback *pThis )
     126{
     127    printf("%d here\n",__LINE__);
     128    return 0;
     129}
     130
     131static nsresult OnDVDDriveChange(IConsoleCallback *pThis )
     132{
     133    printf("%d here\n",__LINE__);
     134    return 0;
     135}
     136
     137static nsresult OnFloppyDriveChange(IConsoleCallback *pThis )
    139138{
    140139    printf("%d here\n",__LINE__);
     
    143142
    144143static nsresult OnNetworkAdapterChange(
    145     IConsoleCallback *this_,
     144    IConsoleCallback *pThis,
    146145    INetworkAdapter * networkAdapter
    147146) {
     
    151150
    152151static nsresult OnSerialPortChange(
    153     IConsoleCallback *this_,
     152    IConsoleCallback *pThis,
    154153    ISerialPort * serialPort
    155154) {
     
    159158
    160159static nsresult OnParallelPortChange(
    161     IConsoleCallback *this_,
     160    IConsoleCallback *pThis,
    162161    IParallelPort * parallelPort
    163162) {
     
    166165}
    167166
    168 static nsresult OnStorageControllerChange(IConsoleCallback *this_ )
    169 {
    170     printf("%d here\n",__LINE__);
    171     return 0;
    172 }
    173 
    174 static nsresult OnVRDPServerChange(IConsoleCallback *this_ )
    175 {
    176     printf("%d here\n",__LINE__);
    177     return 0;
    178 }
    179 
    180 static nsresult OnUSBControllerChange(IConsoleCallback *this_ )
     167static nsresult OnStorageControllerChange(IConsoleCallback *pThis )
     168{
     169    printf("%d here\n",__LINE__);
     170    return 0;
     171}
     172
     173static nsresult OnVRDPServerChange(IConsoleCallback *pThis )
     174{
     175    printf("%d here\n",__LINE__);
     176    return 0;
     177}
     178
     179static nsresult OnUSBControllerChange(IConsoleCallback *pThis )
    181180{
    182181    printf("%d here\n",__LINE__);
     
    185184
    186185static nsresult OnUSBDeviceStateChange(
    187     IConsoleCallback *this_,
     186    IConsoleCallback *pThis,
    188187    IUSBDevice * device,
    189188    PRBool attached,
     
    195194
    196195static nsresult OnSharedFolderChange(
    197     IConsoleCallback *this_,
     196    IConsoleCallback *pThis,
    198197    PRUint32 scope
    199198) {
     
    203202
    204203static nsresult OnRuntimeError(
    205     IConsoleCallback *this_,
     204    IConsoleCallback *pThis,
    206205    PRBool fatal,
    207206    PRUnichar * id,
     
    213212
    214213static nsresult OnCanShowWindow(
    215     IConsoleCallback *this_,
     214    IConsoleCallback *pThis,
    216215    PRBool * canShow
    217216) {
     
    221220
    222221static nsresult OnShowWindow(
    223     IConsoleCallback *this_,
     222    IConsoleCallback *pThis,
    224223    PRUint64 * winId
    225224) {
     
    229228
    230229
    231 static nsresult AddRef(nsISupports *this_)
     230static nsresult AddRef(nsISupports *pThis)
    232231{
    233232    nsresult c;
     
    238237}
    239238
    240 static nsresult Release(nsISupports *this_)
     239static nsresult Release(nsISupports *pThis)
    241240{
    242241    nsresult c;
     
    247246    {
    248247        /* delete object */
    249 #if 0 /* test */
    250         free(this_->vtbl);
    251         free(this_);
     248#if 1 /* test */
     249        free(pThis->vtbl);
     250        free(pThis);
    252251#endif
    253252    }
     
    255254}
    256255
    257 static nsresult QueryInterface(nsISupports *this_, const nsID *iid, void **resultp)
    258 {
    259     IConsoleCallback *that = (IConsoleCallback *)this_;
     256static nsresult QueryInterface(nsISupports *pThis, const nsID *iid, void **resultp)
     257{
     258    IConsoleCallback *that = (IConsoleCallback *)pThis;
    260259
    261260    printf("QueryInterface\n");
  • trunk/src/VBox/Main/cbinding/xpcidl.xsl

    r18374 r18821  
    452452   * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL.
    453453   */
    454   nsresult (*QueryInterface)(nsISupports *this_, const nsID *iid, void **resultp);
     454  nsresult (*QueryInterface)(nsISupports *pThis, const nsID *iid, void **resultp);
    455455  /**
    456456   * Increases the reference count for this interface.
     
    460460   * @return The resulting reference count.
    461461   */
    462   nsresult (*AddRef)(nsISupports *this_);
     462  nsresult (*AddRef)(nsISupports *pThis);
    463463
    464464  /**
     
    469469   * @return The resulting reference count.
    470470   */
    471   nsresult (*Release)(nsISupports *this_);
     471  nsresult (*Release)(nsISupports *pThis);
    472472
    473473};
     
    490490
    491491  /* readonly attribute string message; */
    492   nsresult (*GetMessage)(nsIException *this_, PRUnichar * *aMessage);
     492  nsresult (*GetMessage)(nsIException *pThis, PRUnichar * *aMessage);
    493493
    494494  /* readonly attribute nsresult (*result; */
    495   nsresult (*GetResult)(nsIException *this_, nsresult *aResult);
     495  nsresult (*GetResult)(nsIException *pThis, nsresult *aResult);
    496496
    497497  /* readonly attribute string name; */
    498   nsresult (*GetName)(nsIException *this_, PRUnichar * *aName);
     498  nsresult (*GetName)(nsIException *pThis, PRUnichar * *aName);
    499499
    500500  /* readonly attribute string filename; */
    501   nsresult (*GetFilename)(nsIException *this_, PRUnichar * *aFilename);
     501  nsresult (*GetFilename)(nsIException *pThis, PRUnichar * *aFilename);
    502502
    503503  /* readonly attribute PRUint32 lineNumber; */
    504   nsresult (*GetLineNumber)(nsIException *this_, PRUint32 *aLineNumber);
     504  nsresult (*GetLineNumber)(nsIException *pThis, PRUint32 *aLineNumber);
    505505
    506506  /* readonly attribute PRUint32 columnNumber; */
    507   nsresult (*GetColumnNumber)(nsIException *this_, PRUint32 *aColumnNumber);
     507  nsresult (*GetColumnNumber)(nsIException *pThis, PRUint32 *aColumnNumber);
    508508
    509509  /* readonly attribute nsIStackFrame location; */
    510   nsresult (*GetLocation)(nsIException *this_, nsIStackFrame * *aLocation);
     510  nsresult (*GetLocation)(nsIException *pThis, nsIStackFrame * *aLocation);
    511511
    512512  /* readonly attribute nsIException inner; */
    513   nsresult (*GetInner)(nsIException *this_, nsIException * *aInner);
     513  nsresult (*GetInner)(nsIException *pThis, nsIException * *aInner);
    514514
    515515  /* readonly attribute nsISupports data; */
    516   nsresult (*GetData)(nsIException *this_, nsISupports * *aData);
     516  nsresult (*GetData)(nsIException *pThis, nsISupports * *aData);
    517517
    518518  /* string toString (); */
    519   nsresult (*ToString)(nsIException *this_, PRUnichar **_retval);
     519  nsresult (*ToString)(nsIException *pThis, PRUnichar **_retval);
    520520};
    521521
     
    537537
    538538  /* readonly attribute PRUint32 language; */
    539   nsresult (*GetLanguage)(nsIStackFrame *this_, PRUint32 *aLanguage);
     539  nsresult (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aLanguage);
    540540
    541541  /* readonly attribute string languageName; */
    542   nsresult (*GetLanguageName)(nsIStackFrame *this_, PRUnichar * *aLanguageName);
     542  nsresult (*GetLanguageName)(nsIStackFrame *pThis, PRUnichar * *aLanguageName);
    543543
    544544  /* readonly attribute string filename; */
    545   nsresult (*GetFilename)(nsIStackFrame *this_, PRUnichar * *aFilename);
     545  nsresult (*GetFilename)(nsIStackFrame *pThis, PRUnichar * *aFilename);
    546546
    547547  /* readonly attribute string name; */
    548   nsresult (*GetName)(nsIStackFrame *this_, PRUnichar * *aName);
     548  nsresult (*GetName)(nsIStackFrame *pThis, PRUnichar * *aName);
    549549
    550550  /* readonly attribute PRInt32 lineNumber; */
    551   nsresult (*GetLineNumber)(nsIStackFrame *this_, PRInt32 *aLineNumber);
     551  nsresult (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *aLineNumber);
    552552
    553553  /* readonly attribute string sourceLine; */
    554   nsresult (*GetSourceLine)(nsIStackFrame *this_, PRUnichar * *aSourceLine);
     554  nsresult (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar * *aSourceLine);
    555555
    556556  /* readonly attribute nsIStackFrame caller; */
    557   nsresult (*GetCaller)(nsIStackFrame *this_, nsIStackFrame * *aCaller);
     557  nsresult (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame * *aCaller);
    558558
    559559  /* string toString (); */
    560   nsresult (*ToString)(nsIStackFrame *this_, PRUnichar **_retval);
     560  nsresult (*ToString)(nsIStackFrame *pThis, PRUnichar **_retval);
    561561};
    562562
     
    844844      <xsl:text>)(</xsl:text>
    845845      <xsl:value-of select="../@name" />
    846       <xsl:text> *this_, </xsl:text>
     846      <xsl:text> *pThis, </xsl:text>
    847847      <!-- array size -->
    848848      <xsl:text>PRUint32 *</xsl:text>
     
    885885        <xsl:text>)(</xsl:text>
    886886        <xsl:value-of select="../@name" />
    887         <xsl:text> *this_, </xsl:text>
     887        <xsl:text> *pThis, </xsl:text>
    888888        <xsl:apply-templates select="@type" mode="forwarder"/>
    889889        <xsl:text> *</xsl:text>
     
    901901          <xsl:text>)(</xsl:text>
    902902          <xsl:value-of select="../@name" />
    903           <xsl:text> *this_, </xsl:text>
     903          <xsl:text> *pThis, </xsl:text>
    904904          <xsl:apply-templates select="@type" mode="forwarder"/>
    905905          <xsl:text> *</xsl:text>
     
    912912          <xsl:text>)(</xsl:text>
    913913          <xsl:value-of select="../@name" />
    914           <xsl:text> *this_, </xsl:text>
     914          <xsl:text> *pThis, </xsl:text>
    915915          <xsl:apply-templates select="@type" mode="forwarder"/>
    916916          <xsl:text> </xsl:text>
     
    10961096    <xsl:text>        </xsl:text>
    10971097    <xsl:value-of select="../@name" />
    1098     <xsl:text> *this_,&#x0A;</xsl:text>
     1098    <xsl:text> *pThis,&#x0A;</xsl:text>
    10991099    <xsl:for-each select="param [position() != last()]">
    11001100      <xsl:text>        </xsl:text>
     
    11091109    <xsl:text>)(</xsl:text>
    11101110    <xsl:value-of select="../@name" />
    1111     <xsl:text> *this_ );&#x0A;</xsl:text>
     1111    <xsl:text> *pThis );&#x0A;</xsl:text>
    11121112  </xsl:if>
    11131113  <xsl:apply-templates select="@if" mode="end"/>
     
    13071307  <xsl:text>    nsresult (*HasMore)(</xsl:text>
    13081308  <xsl:value-of select="@name" />
    1309   <xsl:text> *this_, PRBool *more);&#x0A;&#x0A;</xsl:text>
     1309  <xsl:text> *pThis, PRBool *more);&#x0A;&#x0A;</xsl:text>
    13101310  <!-- GetNext -->
    13111311  <xsl:text>    nsresult (*GetNext)(</xsl:text>
    13121312  <xsl:value-of select="@name" />
    1313   <xsl:text> *this_, </xsl:text>
     1313  <xsl:text> *pThis, </xsl:text>
    13141314  <xsl:apply-templates select="@type" mode="forwarder"/>
    13151315  <xsl:text> *next);&#x0A;&#x0A;</xsl:text>
     
    13711371  <xsl:text>    nsresult (*GetCount)(</xsl:text>
    13721372  <xsl:value-of select="@name" />
    1373   <xsl:text> *this_, PRUint32 *aCount);&#x0A;&#x0A;</xsl:text>
     1373  <xsl:text> *pThis, PRUint32 *aCount);&#x0A;&#x0A;</xsl:text>
    13741374  <!-- GetItemAt -->
    13751375  <xsl:text>    nsresult (*GetItemAt)(</xsl:text>
    13761376  <xsl:value-of select="@name" />
    1377   <xsl:text> *this_, PRUint32 index, </xsl:text>
     1377  <xsl:text> *pThis, PRUint32 index, </xsl:text>
    13781378  <xsl:apply-templates select="@type" mode="forwarder"/>
    13791379  <xsl:text> **item);&#x0A;&#x0A;</xsl:text>
     
    13811381  <xsl:text>    nsresult (*Enumerate)(</xsl:text>
    13821382  <xsl:value-of select="@name" />
    1383   <xsl:text> *this_, </xsl:text>
     1383  <xsl:text> *pThis, </xsl:text>
    13841384  <xsl:apply-templates select="@enumerator"/>
    13851385  <xsl:text> **enumerator);&#x0A;&#x0A;</xsl:text>
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