babl: fix some annotation to make the function usable in bindings.
[babl.git] / tests / types.c
blob1b86ceaf6f452b37dc32d45e1b873a7e918da4ed
1 #include "config.h"
2 #include <math.h>
3 #include "babl-internal.h"
5 int OK = 1;
7 static int type_check (Babl *babl,
8 void *userdata)
10 if (!babl_type_is_symmetric (babl))
12 babl_log ("%s is not symmetric", babl->instance.name);
13 OK = 0;
15 return 0;
18 int main (void)
20 babl_init ();
22 babl_set_extender (babl_extension_quiet_log ());
23 babl_type_class_for_each (type_check, NULL);
25 babl_exit ();
27 return !OK;