VirtualBox

Changeset 103176 in vbox for trunk/src/libs


Ignore:
Timestamp:
Feb 2, 2024 2:07:50 PM (10 months ago)
Author:
vboxsync
Message:

libs/xpcom/python: Some cleanup, bugref:3409

Location:
trunk/src/libs/xpcom18a4/python/src
Files:
9 edited

Legend:

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

    r101955 r103176  
    8383
    8484// Our "normal" error logger - calls back to the logging module.
    85 void DoLogMessage(const char *methodName, const char *pszMessageText)
     85static void DoLogMessage(const char *methodName, const char *pszMessageText)
    8686{
    8787        // We use the logging module now.  Originally this code called
     
    131131}
    132132
    133 void LogMessage(const char *methodName, const char *pszMessageText)
     133static void LogMessage(const char *methodName, const char *pszMessageText)
    134134{
    135135        // Be careful to save and restore the Python exception state
     
    142142
    143143
    144 void LogMessage(const char *methodName, nsACString &text)
     144static void LogMessage(const char *methodName, nsACString &text)
    145145{
    146146        char *c = ToNewCString(text);
  • trunk/src/libs/xpcom18a4/python/src/PyGBase.cpp

    r101955 r103176  
    6060}
    6161
    62 extern PyG_Base *MakePyG_nsIModule(PyObject *);
    63 extern PyG_Base *MakePyG_nsIComponentLoader(PyObject *instance);
    64 extern PyG_Base *MakePyG_nsIInputStream(PyObject *instance);
    65 
    6662static char *PyXPCOM_szDefaultGatewayAttributeName = (char*)"_com_instance_default_gateway_";
    6763PyG_Base *GetDefaultGateway(PyObject *instance);
  • trunk/src/libs/xpcom18a4/python/src/PyGInputStream.cpp

    r86333 r103176  
    6464
    6565
    66 PyG_Base *MakePyG_nsIInputStream(PyObject *instance)
     66DECLHIDDEN (PyG_Base *) MakePyG_nsIInputStream(PyObject *instance)
    6767{
    6868        return new PyG_nsIInputStream(instance);
  • trunk/src/libs/xpcom18a4/python/src/PyGModule.cpp

    r11746 r103176  
    6565};
    6666
    67 PyG_Base *MakePyG_nsIModule(PyObject *instance)
     67DECLHIDDEN(PyG_Base *) MakePyG_nsIModule(PyObject *instance)
    6868{
    6969        return new PyG_nsIModule(instance);
     
    169169};
    170170
    171 PyG_Base *MakePyG_nsIComponentLoader(PyObject *instance)
     171DECLHIDDEN(PyG_Base *) MakePyG_nsIComponentLoader(PyObject *instance)
    172172{
    173173        return new PyG_nsIComponentLoader(instance);
  • trunk/src/libs/xpcom18a4/python/src/PyIVariant.cpp

    r59809 r103176  
    161161        return Py_nsISupports::PyObjectFromInterface(p, *iid);
    162162}
    163 
    164 extern PyObject *PyObject_FromVariantArray( Py_nsISupports*, nsIVariant *v);
    165163
    166164static PyObject *GetAsArray(PyObject *self, PyObject *args) {
  • trunk/src/libs/xpcom18a4/python/src/PyXPCOM.h

    r102411 r103176  
    980980// deprecated, but retained for backward compatibility:
    981981PyXPCOM_INTERFACE_DECLARE(Py_nsIComponentManagerObsolete, nsIComponentManagerObsolete, PyMethods_IComponentManagerObsolete)
     982
     983
     984/* VariantUtils.cpp. */
     985DECLHIDDEN(PyObject *) PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v);
     986
     987/* PyGModule.cpp */
     988DECLHIDDEN(PyG_Base *) MakePyG_nsIComponentLoader(PyObject *instance);
     989DECLHIDDEN(PyG_Base *) MakePyG_nsIModule(PyObject *instance);
     990
     991/* PyGInputStream.cpp */
     992DECLHIDDEN(PyG_Base *) MakePyG_nsIInputStream(PyObject *instance);
     993
     994
    982995#endif // __PYXPCOM_H__
  • trunk/src/libs/xpcom18a4/python/src/VariantUtils.cpp

    r94562 r103176  
    5959// ------------------------------------------------------------------------
    6060// one day we may know what they look like.
    61 inline
     61static inline
    6262PRBool
    6363IsNullDOMString( const nsAString& aString )
     
    6666}
    6767
    68 inline
     68static inline
    6969PRBool
    7070IsNullDOMString( const nsACString& aString )
     
    322322
    323323
    324 void FreeSingleArray(void *array_ptr, PRUint32 sequence_size, PRUint8 array_type)
     324static void FreeSingleArray(void *array_ptr, PRUint32 sequence_size, PRUint8 array_type)
    325325{
    326326        // Free each array element - NOT the array itself
     
    372372
    373373
    374 PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence_size,
    375                        PRUint32 array_element_size, PRUint8 array_type, nsIID *pIID)
     374static PRBool FillSingleArray(void *array_ptr, PyObject *sequence_ob, PRUint32 sequence_size,
     375                              PRUint32 array_element_size, PRUint8 array_type, nsIID *pIID)
    376376{
    377377        PRUint8 *pthis = (PRUint8 *)array_ptr;
     
    925925}
    926926
    927 PyObject *PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v)
     927DECLHIDDEN(PyObject *) PyObject_FromVariantArray( Py_nsISupports *parent, nsIVariant *v)
    928928{
    929929        nsresult nr;
  • trunk/src/libs/xpcom18a4/python/src/dllmain.cpp

    r101955 r103176  
    129129}
    130130
    131 void pyxpcom_construct(void)
     131static void pyxpcom_construct(void)
    132132{
    133133    int vrc = RTSemFastMutexCreate(&g_lockMain);
     
    138138}
    139139
    140 void pyxpcom_destruct(void)
     140static void pyxpcom_destruct(void)
    141141{
    142142    RTSemFastMutexDestroy(g_lockMain);
  • trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp

    r102031 r103176  
    521521}
    522522
    523 PyObject *PyGetSpecialDirectory(PyObject *self, PyObject *args)
     523static PyObject *PyGetSpecialDirectory(PyObject *self, PyObject *args)
    524524{
    525525        char *dirname;
     
    534534}
    535535
    536 PyObject *AllocateBuffer(PyObject *self, PyObject *args)
     536static PyObject *AllocateBuffer(PyObject *self, PyObject *args)
    537537{
    538538        int bufSize;
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