PyGModule.cpp revision 16a8d09569a2ebd598cef72fa605be6fb4563607
#include "PyXPCOM_std.h"
#include <nsIModule.h>
#include <nsIComponentLoader.h>
void** r_classObj)
if (PyErr_Occurred())
return nr;
const char* registryLocation,
const char* componentType)
nsresult nr = InvokeNativeViaPolicy(methodName, NULL, "OOzz", cm, path, registryLocation, componentType);
return nr;
const char* registryLocation)
return nr;
if (PyErr_Occurred())
return nr;
NS_IMETHODIMP PyG_nsIComponentLoader::GetFactory(const nsIID & aCID, const char *aLocation, const char *aType, nsIFactory **_retval)
iid,
aType);
Py_nsISupports::InterfaceFromPyObject(ret, NS_GET_IID(nsIFactory), (nsISupports **)_retval, PR_FALSE);
if (PyErr_Occurred())
return nr;
Py_XDECREF(c);
Py_XDECREF(r);
return nr;
/* void onRegister (in nsIIDRef aCID, in string aType, in string aClassName, in string aContractID, in string aLocation, in boolean aReplace, in boolean aPersist); */
NS_IMETHODIMP PyG_nsIComponentLoader::OnRegister(const nsIID & aCID, const char *aType, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist)
iid,
aPersist);
return nr;
Py_XDECREF(c);
return nr;
NS_IMETHODIMP PyG_nsIComponentLoader::AutoRegisterComponent(PRInt32 aWhen, nsIFile *aComponent, PRBool *_retval)
Py_XDECREF(c);
if (PyErr_Occurred())
return nr;
NS_IMETHODIMP PyG_nsIComponentLoader::AutoUnregisterComponent(PRInt32 aWhen, nsIFile *aComponent, PRBool *_retval)
Py_XDECREF(c);
if (PyErr_Occurred())
return nr;
if (PyErr_Occurred())
return nr;