blob: 8c88c02905faf7e9eac9034aab9664557db2ae8b [file] [log] [blame]
#pragma once
#include <android/binder_interface_utils.h>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#ifdef BINDER_STABILITY_SUPPORT
#include <android/binder_stability.h>
#endif // BINDER_STABILITY_SUPPORT
namespace aidl {
namespace android {
namespace hardware {
namespace common {
class NativeHandle {
public:
static const char* descriptor;
std::vector<::ndk::ScopedFileDescriptor> fds;
std::vector<int32_t> ints;
binder_status_t readFromParcel(const AParcel* parcel);
binder_status_t writeToParcel(AParcel* parcel) const;
};
} // namespace common
} // namespace hardware
} // namespace android
} // namespace aidl