mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
4ef099679d
Reviewed By: fkgozali Differential Revision: D7998298 fbshipit-source-id: f20d5b961db1cc31880d383a67d8bba40dd8008f
33 lines
701 B
C
33 lines
701 B
C
/**
|
|
* Copyright (c) 2016-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.
|
|
*/
|
|
|
|
#include <JavaScriptCore/JSObjectRef.h>
|
|
|
|
// These Symbols are included in JSC builds but not exported as part of the public headers.
|
|
|
|
#ifndef JSWeakPrivate_h
|
|
#define JSWeakPrivate_h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpaqueJSWeak* JSWeakRef;
|
|
|
|
JSWeakRef JSWeakCreate(JSContextGroupRef, JSObjectRef);
|
|
|
|
void JSWeakRetain(JSContextGroupRef, JSWeakRef);
|
|
void JSWeakRelease(JSContextGroupRef, JSWeakRef);
|
|
|
|
JSObjectRef JSWeakGetObject(JSWeakRef);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // JSWeakPrivate_h
|