Blame operations/transform/module.c

Packit bc1512
/* This file is part of GEGL
Packit bc1512
 *
Packit bc1512
 * GEGL is free software; you can redistribute it and/or
Packit bc1512
 * modify it under the terms of the GNU Lesser General Public
Packit bc1512
 * License as published by the Free Software Foundation; either
Packit bc1512
 * version 3 of the License, or (at your option) any later version.
Packit bc1512
 *
Packit bc1512
 * GEGL is distributed in the hope that it will be useful,
Packit bc1512
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit bc1512
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit bc1512
 * Lesser General Public License for more details.
Packit bc1512
 *
Packit bc1512
 * You should have received a copy of the GNU Lesser General Public
Packit bc1512
 * License along with GEGL; if not, see <http://www.gnu.org/licenses/>.
Packit bc1512
 *
Packit bc1512
 * Copyright 2006 Philip Lafleur
Packit bc1512
 */
Packit bc1512
Packit bc1512
#include "config.h"
Packit bc1512
#include <gegl-plugin.h>
Packit bc1512
#include "module.h"
Packit bc1512
#include "transform-core.h"
Packit bc1512
Packit bc1512
static GTypeModule          *affine_module;
Packit bc1512
static const GeglModuleInfo  modinfo =
Packit bc1512
{
Packit bc1512
  GEGL_MODULE_ABI_VERSION
Packit bc1512
};
Packit bc1512
Packit bc1512
G_MODULE_EXPORT GTypeModule *
Packit bc1512
affine_module_get_module (void)
Packit bc1512
{
Packit bc1512
  return affine_module;
Packit bc1512
}
Packit bc1512
Packit bc1512
G_MODULE_EXPORT const GeglModuleInfo *
Packit bc1512
gegl_module_query (GTypeModule *module)
Packit bc1512
{
Packit bc1512
  return &modinfo;
Packit bc1512
}
Packit bc1512
Packit bc1512
GType rotate_get_type    (void);
Packit bc1512
GType scale_get_type     (void);
Packit bc1512
GType shear_get_type     (void);
Packit bc1512
GType translate_get_type (void);
Packit bc1512
GType reflect_get_type (void);
Packit bc1512
GType transform_get_type   (void);
Packit bc1512
Packit bc1512
G_MODULE_EXPORT gboolean
Packit bc1512
gegl_module_register (GTypeModule *module)
Packit bc1512
{
Packit bc1512
  GType dummy;
Packit bc1512
  affine_module = module;
Packit bc1512
Packit bc1512
  dummy = op_affine_get_type ();
Packit bc1512
  dummy = rotate_get_type ();
Packit bc1512
  dummy = scale_get_type ();
Packit bc1512
  dummy = shear_get_type ();
Packit bc1512
  dummy = translate_get_type ();
Packit bc1512
  dummy = reflect_get_type ();
Packit bc1512
  dummy = transform_get_type ();
Packit bc1512
Packit bc1512
  dummy ++; /* silence gcc, having it is required to avoid optimizing
Packit bc1512
               away the _get_type calls themselves */
Packit bc1512
Packit bc1512
  return TRUE;
Packit bc1512
}