# requests

msg destroy = 0 { }

msg add = 1 {
    fd: fd,
    plane_idx: u32,
    offset: u32,
    stride: u32,
    modifier_hi: u32,
    modifier_lo: u32,
}

msg create = 2 {
    width: i32,
    height: i32,
    format: u32,
    flags: u32,
}

msg create_immed = 3 {
    buffer_id: id(wl_buffer),
    width: i32,
    height: i32,
    format: u32,
    flags: u32,
}

# events

msg created = 0 {
    buffer: id(wl_buffer),
}

msg failed = 1 {

}
