VirtualBox

Changeset 22691 in vbox for trunk/src/libs/xpcom18a4/python


Ignore:
Timestamp:
Sep 2, 2009 1:50:13 AM (15 years ago)
Author:
vboxsync
Message:

VBoxPython: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r22689 r22691  
    496496static nsIEventQueue* g_mainEventQ = nsnull;
    497497
     498// Wrapper that checks if the queue has pending events.
     499DECLINLINE(bool)
     500hasEventQueuePendingEvents(nsIEventQueue *pQueue)
     501{
     502        PRBool fHasEvents = PR_FALSE;
     503        nsresult rc = pQueue->PendingEvents(&fHasEvents);
     504        return NS_SUCCEEDED(rc) && fHasEvents ? true : false;
     505}
     506
     507// Wrapper that checks if the queue is native or not.
     508DECLINLINE(bool)
     509isEventQueueNative(nsIEventQueue *pQueue)
     510{
     511        PRBool fIsNative = PR_FALSE;
     512        nsresult rc = pQueue->IsQueueNative(&fIsNative);
     513        return NS_SUCCEEDED(rc) && fIsNative ? true : false;
     514}
     515
    498516# ifdef RT_OS_DARWIN
    499517#  include <iprt/time.h>
     
    504522#   include <CarbonEvents.h>
    505523#  endif
    506 
    507 // Wrapper that checks if the queue has pending events.
    508 DECLINLINE(bool)
    509 hasEventQueuePendingEvents(nsIEventQueue *pQueue)
    510 {
    511         PRBool fHasEvents = PR_FALSE;
    512         nsresult rc = pQueue->PendingEvents(&fHasEvents);
    513         return NS_SUCCEEDED(rc) && fHasEvents ? true : false;
    514 }
    515 
    516 // Wrapper that checks if the queue has pending events.
    517 DECLINLINE(bool)
    518 isEventQueueNative(nsIEventQueue *pQueue)
    519 {
    520         PRBool fIsNative = PR_FALSE;
    521         nsresult rc = pQueue->IsQueueNative(&fIsNative);
    522         return NS_SUCCEEDED(rc) && fIsNative ? true : false;
    523 }
    524 
    525524
    526525// Common fallback for waiting (and maybe processing) events. Caller process
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