a07b3451a3
* Create README.md * add example * crates & examples * fix syntax * add LICENSE * thirdparty LICENSE * rearrange repo * fix build * egui versions * prepare publish * fix demo compilation * add test ci * Update rust.yml * forgot runs-on * install protoc before building * avoid rate limit * include submodules * updates to readme * cache rust builds Co-authored-by: David Zhao <dz@livekit.io> Co-authored-by: David Zhao <david@davidzhao.com>
27 lines
556 B
C++
27 lines
556 B
C++
//
|
|
// Created by theom on 04/09/2022.
|
|
//
|
|
|
|
#ifndef CLIENT_SDK_NATIVE_RTC_ERROR_H
|
|
#define CLIENT_SDK_NATIVE_RTC_ERROR_H
|
|
|
|
#include "api/rtc_error.h"
|
|
#include "webrtc-sys/src/rtc_error.rs.h"
|
|
#include "rust/cxx.h"
|
|
#include "rust_types.h"
|
|
|
|
namespace livekit {
|
|
|
|
RTCError to_error(const webrtc::RTCError& error);
|
|
std::string serialize_error(
|
|
const RTCError& error); // to be used inside cxx::Exception msg
|
|
|
|
#ifdef LIVEKIT_TEST
|
|
rust::String serialize_deserialize();
|
|
void throw_error();
|
|
#endif
|
|
|
|
} // namespace livekit
|
|
|
|
#endif // CLIENT_SDK_NATIVE_RTC_ERROR_H
|