All pastes #20064 Raw Edit

Anonymous

public text v1 · immutable
#20064 ·published 2005-08-15 15:02 UTC
rendered paste body
// capComments.cpp : Defines the entry point for the DLL application.
//

#include "bzfsAPI.h"

BZ_GET_PLUGIN_VERSION

//class to hold callback
class CapHandler : public bz_EventHandler
{
public:
  virtual void capComment ( bz_EventData *eventData );
};

CapHandler capHandler;

BZF_PLUGIN_CALL int bz_Load ( const char* commandLine )
{
	bz_debugMessage(4,"capComments plugin loaded");
	bz_registerEvent(bz_eCaptureEvent,&capHandler);
	return 0;
}

BZF_PLUGIN_CALL int bz_Unload ( void )
{
	bz_debugMessage(4,"capComments plugin unloaded");
	bz_removeEvent(bz_eCaptureEvent,&capHandler);
	return 0;
}

void CapHandler::capComment ( bz_EventData *eventData )
{
  if eventData->eventType != bz_eCaptureEvent)
    return;

bz_CTFCaptureEventData *ctfData = (bz_CTFCaptureEventData*)eventData;

}