mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
e2628f93b5
Summary: * Cleanup some header files so we use more forward declarations * Rename Executor to JSExecutor.h * Move some typedefs to more appropriate locations Reviewed By: mhorowitz Differential Revision: D5301913 fbshipit-source-id: e75154797eb3f531d2f42a5e95409f4062b85f91
30 lines
550 B
C++
30 lines
550 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
struct MethodCall {
|
|
int moduleId;
|
|
int methodId;
|
|
folly::dynamic arguments;
|
|
int callId;
|
|
|
|
MethodCall(int mod, int meth, folly::dynamic&& args, int cid)
|
|
: moduleId(mod)
|
|
, methodId(meth)
|
|
, arguments(std::move(args))
|
|
, callId(cid) {}
|
|
};
|
|
|
|
std::vector<MethodCall> parseMethodCalls(folly::dynamic&& calls) throw(std::invalid_argument);
|
|
|
|
} }
|