if(!npp) return NPERR_INVALID_INSTANCE_ERROR;
NPN_PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("NPN_GetURLNotify: npp=%p, target=%s, notify=%p, url=%s\n", (void*)npp, target, notifyData, relativeURL));  if(!npp) return NPERR_INVALID_INSTANCE_ERROR;
_geturlnotify(NPP npp, const char* relativeURL, const char* target,                          void* notifyData){	if(!npp)		return NPERR_INVALID_INSTANCE_ERROR;  nsIPluginInstance *inst = (nsIPluginInstance *) npp->ndata;  NS_ASSERTION(inst != NULL, "null instance");  NS_ASSERTION(gServiceMgr != NULL, "null service manager");  if (inst == NULL)    return NPERR_INVALID_INSTANCE_ERROR;  if(gServiceMgr == nsnull)		return NPERR_GENERIC_ERROR;	nsIPluginStreamListener* listener = nsnull;	if(target == nsnull)		((ns4xPluginInstance*)inst)->NewNotifyStream(&listener, notifyData);  nsIPluginManager * pm;  gServiceMgr->GetService(kPluginManagerCID, kIPluginManagerIID, (nsISupports**)&pm);	if(pm->GetURL(inst, relativeURL, target, listener) != NS_OK)		return NPERR_GENERIC_ERROR;  NS_RELEASE(pm);	return NPERR_NO_ERROR;}