Blame gdk-pixbuf/io-gdip-wmf.c

Packit 979760
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
Packit 979760
/* GdkPixbuf library - Win32 GDI+ Pixbuf Loader
Packit 979760
 *
Packit 979760
 * Copyright (C) 2008 Dominic Lachowicz
Packit 979760
 * Copyright (C) 2008 Alberto Ruiz
Packit 979760
 *
Packit 979760
 * Authors: Dominic Lachowicz <domlachowicz@gmail.com>
Packit 979760
 *          Alberto Ruiz <aruiz@gnome.org>
Packit 979760
 *
Packit 979760
 * This library is free software; you can redistribute it and/or
Packit 979760
 * modify it under the terms of the GNU Lesser General Public
Packit 979760
 * License as published by the Free Software Foundation; either
Packit 979760
 * version 2 of the License, or (at your option) any later version.
Packit 979760
 *
Packit 979760
 * This library is distributed in the hope that it will be useful,
Packit 979760
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 979760
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 979760
 * Lesser General Public License for more  * You should have received a copy of the GNU Lesser General Public
Packit 979760
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 979760
 */
Packit 979760
Packit 979760
#include "config.h"
Packit 979760
#include <glib/gi18n-lib.h>
Packit 979760
Packit 979760
#include "io-gdip-utils.h"
Packit 979760
Packit 979760
#ifndef INCLUDE_gdiplus
Packit 979760
#define MODULE_ENTRY(function) G_MODULE_EXPORT void function
Packit 979760
#else
Packit 979760
#define MODULE_ENTRY(function) void _gdk_pixbuf__gdip_wmf_ ## function
Packit 979760
#endif
Packit 979760
Packit 979760
MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
Packit 979760
{
Packit 979760
  gdip_fill_vector_vtable (module);
Packit 979760
}
Packit 979760
Packit 979760
MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
Packit 979760
{
Packit 979760
  static const GdkPixbufModulePattern signature[] = {
Packit 979760
    { "\xd7\xcd\xc6\x9a", NULL, 100 }, /* WMF */
Packit 979760
    { "\x01\x00\x09\x00", NULL, 100 }, /* WMF */
Packit 979760
    { NULL, NULL, 0 }
Packit 979760
  };
Packit 979760
Packit 979760
  static const gchar *mime_types[] = {
Packit 979760
    "image/wmf",
Packit 979760
    "image/x-wmf",
Packit 979760
    NULL
Packit 979760
  };
Packit 979760
Packit 979760
  static const gchar *extensions[] = {
Packit 979760
    "wmf",
Packit 979760
    "apm",
Packit 979760
    NULL
Packit 979760
  };
Packit 979760
Packit 979760
  info->name        = "wmf";
Packit 979760
  info->signature   = (GdkPixbufModulePattern *) signature;
Packit 979760
  info->description = NC_("image format", "WMF");
Packit 979760
  info->mime_types  = (gchar **) mime_types;
Packit 979760
  info->extensions  = (gchar **) extensions;
Packit 979760
  info->flags       = GDK_PIXBUF_FORMAT_THREADSAFE;
Packit 979760
  info->license     = "LGPL";
Packit 979760
}