summaryrefslogtreecommitdiff
path: root/tests/types.c
blob: 1b86ceaf6f452b37dc32d45e1b873a7e918da4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "config.h"
#include <math.h>
#include "babl-internal.h"

int OK = 1;

static int type_check (Babl *babl,
                       void *userdata)
{
  if (!babl_type_is_symmetric (babl))
    {
      babl_log ("%s is not symmetric", babl->instance.name);
      OK = 0;
    }
  return 0;
}

int main (void)
{
  babl_init ();

  babl_set_extender (babl_extension_quiet_log ());
  babl_type_class_for_each (type_check, NULL);

  babl_exit ();

  return !OK;
}