RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
00001 /* rtb_js.cc 00002 26 November 2010 00003 Copyright (c) 2010 Datacratic. All rights reserved. 00004 00005 */ 00006 00007 #include "rtb_js.h" 00008 #include "currency_js.h" 00009 #include "soa/js/js_registry.h" 00010 00011 #include "v8.h" 00012 00013 00014 using namespace v8; 00015 using namespace std; 00016 00017 namespace Datacratic { 00018 namespace JS { 00019 00020 const char * const rtbModule = "rtb"; 00021 00022 // Node.js initialization function; called to set up the RTB object 00023 extern "C" void 00024 init(Handle<v8::Object> target) 00025 { 00026 Datacratic::JS::registry.init(target, rtbModule); 00027 00028 initCurrencyFunctions(target); 00029 } 00030 00031 00032 } // namespace JS 00033 } // namespace RTB