1 #include "wrapper.hpp"
2 #include <cstdint>
3 #include <type_traits>
4 
5 using DebuggerdDumpType = ::DebuggerdDumpType;
6 
7 static_assert(::std::is_enum<DebuggerdDumpType>::value, "expected enum");
8 static_assert(sizeof(DebuggerdDumpType) == sizeof(::std::uint8_t), "incorrect size");
9 static_assert(static_cast<::std::uint8_t>(DebuggerdDumpType::kDebuggerdNativeBacktrace) == 0, "disagrees with the value in #[cxx::bridge]");
10 static_assert(static_cast<::std::uint8_t>(DebuggerdDumpType::kDebuggerdTombstone) == 1, "disagrees with the value in #[cxx::bridge]");
11 static_assert(static_cast<::std::uint8_t>(DebuggerdDumpType::kDebuggerdJavaBacktrace) == 2, "disagrees with the value in #[cxx::bridge]");
12 static_assert(static_cast<::std::uint8_t>(DebuggerdDumpType::kDebuggerdAnyIntercept) == 3, "disagrees with the value in #[cxx::bridge]");
13 static_assert(static_cast<::std::uint8_t>(DebuggerdDumpType::kDebuggerdTombstoneProto) == 4, "disagrees with the value in #[cxx::bridge]");
14 
15 extern "C" {
cxxbridge1$tombstoned_connect_files(::std::int32_t pid,::std::int32_t & tombstoned_socket,::std::int32_t & text_output_fd,::std::int32_t & proto_output_fd,::DebuggerdDumpType dump_type)16 bool cxxbridge1$tombstoned_connect_files(::std::int32_t pid, ::std::int32_t &tombstoned_socket, ::std::int32_t &text_output_fd, ::std::int32_t &proto_output_fd, ::DebuggerdDumpType dump_type) noexcept {
17   bool (*tombstoned_connect_files$)(::std::int32_t, ::std::int32_t &, ::std::int32_t &, ::std::int32_t &, ::DebuggerdDumpType) = ::tombstoned_connect_files;
18   return tombstoned_connect_files$(pid, tombstoned_socket, text_output_fd, proto_output_fd, dump_type);
19 }
20 
cxxbridge1$tombstoned_notify_completion(::std::int32_t tombstoned_socket)21 bool cxxbridge1$tombstoned_notify_completion(::std::int32_t tombstoned_socket) noexcept {
22   bool (*tombstoned_notify_completion$)(::std::int32_t) = ::tombstoned_notify_completion;
23   return tombstoned_notify_completion$(tombstoned_socket);
24 }
25 } // extern "C"
26