Skip to content

Truly independent web browser

736 B
Raw Blame
/*
 * Copyright (c) 2026-present, the Ladybird developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Span.h>
#include <AK/Types.h>
#include <AK/Vector.h>
#include <LibIPC/Attachment.h>
#include <LibIPC/Forward.h>

namespace IPC {

// A Mach port name and its disposition on Apple, and a descriptor elsewhere.
struct RawAttachment {
    int value;
    u32 disposition;
};
static_assert(sizeof(RawAttachment) == 8, "RawAttachment of libipc_rust is written to match this by hand");

Vector<Attachment> adopt_raw_attachments(ReadonlySpan<RawAttachment>);
Vector<RawAttachment> release_raw_attachments(Vector<Attachment>);
MessageBuffer adopt_encoded_message(ReadonlyBytes, ReadonlySpan<RawAttachment>);

}