Subversion Repositories HomeAutomation

Rev

Rev 1601 | Rev 1608 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1601 Rev 1604
Line 24... Line 24...
24
#include <string>
24
#include <string>
25
#include <map>
25
#include <map>
26
#include <vector>
26
#include <vector>
27
 
27
 
28
#include <boost/shared_ptr.hpp>
28
#include <boost/shared_ptr.hpp>
29
#include <v8.h>
29
#include <v8-debug.h>
30
 
30
 
31
#include "types.h"
31
#include "types.h"
32
 
32
 
33
namespace atom {
33
namespace atom {
34
namespace vm {
34
namespace vm {
Line 46... Line 46...
46
    FunctionNameList& GetImportFunctionNames();
46
    FunctionNameList& GetImportFunctionNames();
47
   
47
   
48
    virtual void InitializeDone();
48
    virtual void InitializeDone();
49
   
49
   
50
protected:
50
protected:
-
 
51
    typedef boost::shared_ptr<char> TrackerPointer;
-
 
52
   
51
    std::string name_;
53
    std::string name_;
-
 
54
    TrackerPointer tracker_;
52
   
55
   
53
    void Call(std::string name, ArgumentListPointer arguments);
56
    void Call(std::string name, ArgumentListPointer arguments);
54
    void ExportFunction(std::string name, v8::InvocationCallback function);
57
    void ExportFunction(std::string name, v8::InvocationCallback function);
55
    void ImportFunction(std::string name);
58
    void ImportFunction(std::string name);
56
   
59