This source file includes following definitions.
- CreateInstance
- CreateModule
#include "liblouis_module.h"
#include <cstddef>
#include "liblouis_instance.h"
namespace liblouis_nacl {
LibLouisModule::LibLouisModule() : pp::Module() {}
LibLouisModule::~LibLouisModule() {}
pp::Instance* LibLouisModule::CreateInstance(PP_Instance instance) {
static bool created = false;
if (!created) {
created = true;
return new LibLouisInstance(instance);
}
return NULL;
}
}
namespace pp {
Module* CreateModule() {
static bool created = false;
if (!created) {
created = true;
return new liblouis_nacl::LibLouisModule();
}
return NULL;
}
}