MCPcopy Create free account
hub / github.com/breach/thrust / CallMethod

Method CallMethod

src/api/api.cc:84–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void
85API::CallMethod(
86 unsigned int target,
87 std::string method,
88 scoped_ptr<base::DictionaryValue> args,
89 const API::MethodCallback& callback)
90{
91 if(target > 0 && bindings_[target]) {
92 LOG(INFO) << "[API] CALL: " << target << " " << method;
93 /* We route the request to the right binding. */
94 bindings_[target]->CallLocalMethod(method, args.Pass(), callback);
95 }
96}
97
98void
99API::SetRemote(

Callers 1

PerformActionMethod · 0.80

Calls 1

CallLocalMethodMethod · 0.45

Tested by

no test coverage detected