VirtualBox

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


Ignore:
Timestamp:
Aug 12, 2010 2:32:51 PM (14 years ago)
Author:
vboxsync
Message:

EventQueue/py: Return codes, docs and testcase for waitForEvents and interruptWaitEvent.

File:
1 edited

Legend:

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

    r26979 r31601  
    523523      return PyInt_FromLong(1);
    524524
    525   return NULL; /** @todo throw correct exception */
     525  return PyInt_FromLong(2);
    526526}
    527527
     
    534534      return NULL;
    535535
    536   aEventQ->interruptEventQueueProcessing();
    537 
    538   return PyInt_FromLong(0);
     536  int rc = aEventQ->interruptEventQueueProcessing();
     537  return PyBool_FromLong(RT_SUCCESS(rc));
    539538}
    540539
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