webrtc/ringrtc/rffi/api/android/peer_connection_intf.h
Jordan Rose fe9009be92 Move C++/Rust FFI support into WebRTC repo
The gn files are simplified from what's currently in the RingRTC repo,
looking ahead to when the RingRTC Rust and Java builds for Android
aren't included in the WebRTC build.
2023-01-10 16:01:03 -08:00

16 lines
467 B
C

/*
* Copyright 2019-2021 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
#ifndef ANDROID_PEER_CONNECTION_H__
#define ANDROID_PEER_CONNECTION_H__
#include "rffi/api/rffi_defs.h"
#include <jni.h>
// Return a borrowed RC to the native PeerConnection inside of the Java wrapper.
RUSTEXPORT webrtc::PeerConnectionInterface*
Rust_borrowPeerConnectionFromJniOwnedPeerConnection(jlong owned_peer_connection);
#endif /* ANDROID_PEER_CONNECTION_H__ */