NaCl libpcsc

pcsc_nacl_init.cc at [b60bdc45b5]
Login

pcsc_nacl_init.cc at [b60bdc45b5]

File pcsc/pcsc_nacl_init.cc artifact 8843ef3219 part of check-in b60bdc45b5


#include <ppapi/cpp/core.h>
#include <ppapi/cpp/instance.h>
#include "global.h"

static google_smart_card::TypedMessageRouter tmr;

void pcscNaClInit(pp::Instance *instance, pp::Core *core) {
	new google_smart_card::PcscLiteOverRequesterGlobal(&tmr, instance, core);

	return;
}

bool pcscNaClHandleMessage(const pp::Var &message) {
	return(tmr.OnMessageReceived(message));
}