2018-05-31 22:31:03 +00:00
|
|
|
// Copyright (c) 2004-present, Facebook, Inc.
|
|
|
|
|
|
|
|
// This source code is licensed under the MIT license found in the
|
|
|
|
// LICENSE file in the root directory of this source tree.
|
2016-05-04 02:29:58 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2018-05-10 05:01:53 +00:00
|
|
|
#include <cxxreact/ReactMarker.h>
|
2016-11-22 14:05:36 +00:00
|
|
|
#include <jschelpers/JavaScriptCore.h>
|
2016-05-04 02:29:58 +00:00
|
|
|
|
2017-06-27 18:15:36 +00:00
|
|
|
#ifndef RN_EXPORT
|
|
|
|
#define RN_EXPORT __attribute__((visibility("default")))
|
|
|
|
#endif
|
|
|
|
|
2016-05-04 02:29:58 +00:00
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2017-06-07 17:17:58 +00:00
|
|
|
namespace JSCNativeHooks {
|
|
|
|
|
|
|
|
using Hook = JSValueRef(*)(
|
|
|
|
JSContextRef ctx,
|
|
|
|
JSObjectRef function,
|
|
|
|
JSObjectRef thisObject,
|
|
|
|
size_t argumentCount,
|
|
|
|
const JSValueRef arguments[],
|
|
|
|
JSValueRef *exception);
|
2017-06-27 18:15:36 +00:00
|
|
|
extern RN_EXPORT Hook loggingHook;
|
|
|
|
extern RN_EXPORT Hook nowHook;
|
2017-06-07 17:17:58 +00:00
|
|
|
|
2017-12-14 22:32:31 +00:00
|
|
|
typedef void(*ConfigurationHook)(JSGlobalContextRef);
|
2017-06-27 18:15:36 +00:00
|
|
|
extern RN_EXPORT ConfigurationHook installPerfHooks;
|
2016-05-04 02:29:58 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} }
|