NaCl libpcsc

pcsc_nacl_init.cc at [3dc3a3b281]
Login

pcsc_nacl_init.cc at [3dc3a3b281]

File pcsc/pcsc_nacl_init.cc artifact f3e792cf0d part of check-in 3dc3a3b281


#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, const char *smartcardManagerAppId, const char *clientId) {
	new google_smart_card::PcscLiteOverRequesterGlobal(&tmr, instance, core);

	return;

	/* UNREACH: These are no longer used */
	smartcardManagerAppId = smartcardManagerAppId;
	clientId = clientId;
}

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