2016-04-06 16:45:07 +05:30
|
|
|
#include "thin-provisioning/shared_library_emitter.h"
|
|
|
|
#include <stdexcept>
|
|
|
|
#include "contrib/tmakatos_emitter.h"
|
2016-09-07 18:46:32 +05:30
|
|
|
#include <iostream>
|
2016-04-06 16:45:07 +05:30
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace thin_provisioning;
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|
|
|
|
|
|
|
|
emitter::ptr
|
|
|
|
thin_provisioning::create_custom_emitter(string const &shared_lib, ostream &out)
|
|
|
|
{
|
|
|
|
if (shared_lib != "tmakatos_emitter.so")
|
|
|
|
throw runtime_error(shared_lib + ": no such emitter");
|
|
|
|
|
|
|
|
return emitter::ptr(new tmakatos_emitter::binary_emitter(out));
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------
|