2016-05-03 19:29:58 -07:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2018-05-09 22:01:53 -07:00
|
|
|
#include <cxxreact/ReactMarker.h>
|
2016-11-22 06:05:36 -08:00
|
|
|
#include <jschelpers/JavaScriptCore.h>
|
2016-05-03 19:29:58 -07:00
|
|
|
|
2017-06-27 11:15:36 -07:00
|
|
|
#ifndef RN_EXPORT
|
|
|
|
#define RN_EXPORT __attribute__((visibility("default")))
|
|
|
|
#endif
|
|
|
|
|
2016-05-03 19:29:58 -07:00
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
2017-06-07 10:17:58 -07:00
|
|
|
namespace JSCNativeHooks {
|
|
|
|
|
|
|
|
using Hook = JSValueRef(*)(
|
|
|
|
JSContextRef ctx,
|
|
|
|
JSObjectRef function,
|
|
|
|
JSObjectRef thisObject,
|
|
|
|
size_t argumentCount,
|
|
|
|
const JSValueRef arguments[],
|
|
|
|
JSValueRef *exception);
|
2017-06-27 11:15:36 -07:00
|
|
|
extern RN_EXPORT Hook loggingHook;
|
|
|
|
extern RN_EXPORT Hook nowHook;
|
2017-06-07 10:17:58 -07:00
|
|
|
|
2017-12-14 14:32:31 -08:00
|
|
|
typedef void(*ConfigurationHook)(JSGlobalContextRef);
|
2017-06-27 11:15:36 -07:00
|
|
|
extern RN_EXPORT ConfigurationHook installPerfHooks;
|
2016-05-03 19:29:58 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} }
|