I should've done this in the first place, and the version checks are
starting to spread out a bit.
struct dmabuf_attributes *a;
a = ns->data.wl_dmabuf.attr;
- if (a->version != 1)
+ if (a->version != EVAS_DMABUF_ATTRIBUTE_VERSION)
{
glsym_evas_gl_common_image_free(img);
return NULL;
//#include <Evas_Common.h>
+#define EVAS_DMABUF_ATTRIBUTE_VERSION 1
+
struct dmabuf_attributes
{
/* This must exactly match the struct in Enlightenment.
if (!n) return NULL;
a = ns->data.wl_dmabuf.attr;
- if (a->version != 1)
+ if (a->version != EVAS_DMABUF_ATTRIBUTE_VERSION)
{
free(n);
return NULL;