#include "../native/gaspardos_x64_syscall.h"

/* Called with actual Fortran BIND(C) storage, not duplicate C structs. */
int64_t gof_test_abi(GO64_FSInfo*        info,
                     GO64_WindowOptions* options,
                     GO64_Blit*          blit,
                     GO64_Event*         event,
                     int64_t             handle)
{
    if (info->id != UINT64_C(0x100000001) || info->bytes != 123456789 || info->name[127] != 321
        || info->name_length != 128 || info->is_directory != 1 || options->width != 640
        || options->title[63] != 'Z' || blit->stride != 320
        || blit->pixels != (const uint32_t*) options || event->type != 100 || event->modifiers != 77
        || handle != INT64_C(0x100000002))
        return -1;
    info->bytes = 987654321;
    event->key  = 42;
    return 0;
}
