/* ***** BEGIN LICENSE BLOCK ***** 
 * Version: RCSL 1.0/RPSL 1.0 
 *  
 * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
 *      
 * The contents of this file, and the files included with this file, are 
 * subject to the current version of the RealNetworks Public Source License 
 * Version 1.0 (the "RPSL") available at 
 * http://www.helixcommunity.org/content/rpsl unless you have licensed 
 * the file under the RealNetworks Community Source License Version 1.0 
 * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
 * in which case the RCSL will apply. You may also obtain the license terms 
 * directly from RealNetworks.  You may not use this file except in 
 * compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
 * applicable to this file, the RCSL.  Please see the applicable RPSL or 
 * RCSL for the rights, obligations and limitations governing use of the 
 * contents of the file.  
 *  
 * This file is part of the Helix DNA Technology. RealNetworks is the 
 * developer of the Original Code and owns the copyrights in the portions 
 * it created. 
 *  
 * This file, and the files included with this file, is distributed and made 
 * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
 * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
 * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
 * 
 * Technology Compatibility Kit Test Suite(s) Location: 
 *    http://www.helixcommunity.org/content/tck 
 * 
 * Contributor(s): 
 *  
 * ***** END LICENSE BLOCK ***** */

#define INITGUID

// required rsma includes
#include "ihxtprofile.h"
#ifdef _MAC_MACHO
#include <Carbon/Carbon.h>
#endif
#include "ihxtbase.h"				
#include "ihxtconstants.h"			

// transform includes
#include "PrefilterExampleTransform.h"  

// filter includes
#include "PrefilterExampleFilter.h"	

// agent includes
#include "ihxtconfigagenthelper.h"		
#include "PrefilterExampleAgent.h"	

// rma agent includes
#include "hxcomm.h"		
#include "hxplugn.h"		
#include "hxplgns.h"		
#include "ihxpckts.h"		

// plugin includes 
#include "rtaprefilterexampleplugin.h"	
#include "ihxtplugininfobase.h"

/////////////////////////////////////////////////////////////////////////
//
//	STEP 1  Fill in name of the base class agent used by this plugin 
//		
typedef CRSPrefilterExampleAgent BASECLASSAGENT;

/////////////////////////////////////////////////////////////////////////
//
//	STEP 2  Fill in your plugin description, etc. used by the template helper
//
static const char kValueDescription[] =			"Prefilter Example";
static const char kValueRealCopyright[]   =		"(c) 2001 RealNetworks, All rights reserved";
static const char kValueGenericMoreInfoURL[] =	"http://www.realnetworks.com";
static const INT32 kDefaultPluginVersion =		0;

/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
// Plugin Property Table ( Change to fit this type of plugin) 
//	table that maps strings, uints and buffers to searchable values by pluginhandler
//
CHXTExternalPluginHelper< CRSPrefilterExampleAgent >::SValueEntry CHXTExternalPluginHelper< CRSPrefilterExampleAgent >::s_pPluginInfo[] =
{	
	//	STEP 3) fill in appropriate string categories for this type of plugin
	{ eStringType,	kPropComponentName,		(void*) kValuePluginNamePrefilterExample,	NULL	},
	{ eStringType,	kPropPluginName,		(void*) kValuePluginNamePrefilterExample,	NULL	},
	{ eStringType,	kPropPluginType,		(void*) kValuePluginTypePrefilterExample,	NULL	},
	{ eStringType,	kPropPluginCategory,	(void*) kValuePluginCategoryPrefilter,		NULL	},
	{ eStringType,	kPropPluginLongName,	(void*) "RealNetworks Prefilter Example",	NULL	},


	//  STEP 4) fill in the clsid for this plugin
	{ eBufferType,	kPropComponentCLSID,	(void*) &CLSID_IRTAPrefilterExamplePlugin,	sizeof(CLSID)	},
	{ eEndType,		NULL,					(void*) NULL,						NULL	}
};


/////////////////////////////////////////////////////////////////////////
// Method:
//	RMACreateInstance  ( Leave as Is )
// Purpose:
//	creates a new instance of this class using the template helper.
STDAPI RMACreateInstance(IUnknown** ppAnyUnknown )
{
	//	STEP 5  use the plugin template helper class to create a new Plugin class
	*ppAnyUnknown = (IUnknown*)(IHXPlugin*) new CHXTExternalPluginHelper< BASECLASSAGENT >;
	if (*ppAnyUnknown != NULL)
	{
		(*ppAnyUnknown)->AddRef();
		return HXR_OK;
	}
	return HXR_OUTOFMEMORY;
}

/////////////////////////////////////////////////////////////////////////
// Method:
//	RMAShutdown  ( Leave as Is )
// Purpose:
//	DLL Entry point for shutdown 
STDAPI RMAShutdown(void)
{
    return HXR_OK;
}


