static resolver_t* _cast_resolver(const oe_resolver_t* device)
{
    resolver_t* resolver = (resolver_t*)device;

    if (resolver == NULL || resolver->magic != RESOLV_MAGIC)
        return NULL;

    return resolver;
}
static resolver_t* _cast_resolver(const oe_resolver_t* device)
{
    resolver_t* resolver = (resolver_t*)device;

    if (resolver == NULL || resolver->magic != RESOLV_MAGIC)
        return NULL;

    return resolver;
}