nsresult Register(const char *path)
nsresult Register(nsIComponentRegistrar* register, const char *path)
nsresult Register(const char *path) {   nsCOMPtr<nsIFileSpec> spec;  nsresult res = NS_NewFileSpec(getter_AddRefs(spec));  if (NS_FAILED(res)) return res;  res = spec->SetNativePath((char *)path);  if (NS_FAILED(res)) return res;  res = nsComponentManager::AutoRegisterComponent(nsIComponentManagerObsolete::NS_Startup, spec);  return res;}