XSIPLUGINCALLBACK XSI::CStatus XSILoadPlugin( XSI::PluginRegistrar& in_reg )
{
	using namespace XSI;
	in_reg.PutAuthor( L"Softimage Corp" );
	in_reg.PutName( L"VMF Import Plug-in" );	in_reg.PutVersion( 1, 0 );

	// register the commands plugin item.
	in_reg.RegisterCommand( L"VMFImport", L"VMFImport" );
	// register property
	in_reg.RegisterProperty( L"VMFImportProperty" );	//
	// register the menu for the import 
//	in_reg.RegisterMenu(XSI::siMenuMainFileImportID, L"CPPImportVMF", false, false);
//	in_reg.RegisterMenu((XSI::siMenuAnchorPoints)1014, L"CPPImportVMF", false, false);

	return XSI::CStatus::OK;	
}
XSI::CStatus XSIUnloadPlugin( const XSI::PluginRegistrar& in_reg )
{
	Application app;
#ifdef _DEBUG
	app.LogMessage( in_reg.GetName() + L" has been unloaded.");
#endif
	return XSI::CStatus::OK;
}
//-----------------------------------------------------------------------------
// Registers/deregisters all commands
//-----------------------------------------------------------------------------
bool CVsMayaCommandFactoryBase::RegisterAllCommands( XSI::PluginRegistrar& in_reg )
{
	CVsMayaCommandFactoryBase *pFactory;
	for ( pFactory = s_pFirstCommandFactory; pFactory; pFactory = pFactory->m_pNextFactory )
	{
		XSI::CString str;
		str.PutAsciiString( pFactory->GetCommandName() );
		pFactory->OnRegister( in_reg );
		in_reg.RegisterCommand( str );
	}

	return true;
}
/** Registers the export command, the menu item, and the option dialog */
CStatus XSILoadPlugin( XSI::PluginRegistrar& registrar )
{
	registrar.PutAuthor( L"Steve Streeting" );
	registrar.PutName( L"OGRE Exporter Plugin" );	
    registrar.PutVersion( 1, 0 );
    registrar.PutURL(L"http://www.ogre3d.org");
    

	// register the mesh export command
	registrar.RegisterCommand( L"OgreMeshExportCommand", L"OgreMeshExportCommand" );

    // register the menu under File > Export
	registrar.RegisterMenu(siMenuMainFileExportID, L"OgreMeshExportMenu", false, false);

	// register the export dialog properties factory
	registrar.RegisterProperty( L"OgreMeshExportOptions" );

#ifdef _DEBUG
    Application app;
    app.LogMessage( registrar.GetName() + L" has been loaded.");
#endif

    return XSI::CStatus::OK;	
}