#!/usr/bin/env python3

import platform

from cffi import FFI

ffi = FFI()
lib = ffi.dlopen("./libfcs_find_deal." +
                 ("dll" if (platform.system() == 'Windows') else "so"))

ffi.cdef('''
long long fc_solve_find_deal_in_range(
const long long start, const long long end, const uint_fast32_t *const ints);
void * fc_solve_user__find_deal__alloc();
void fc_solve_user__find_deal__free(void *);
void fc_solve_user__find_deal__fill(void *, const char *);
const char * fc_solve_user__find_deal__run(void *, const char *, const char *);
''')
