Blame thumbnailer/gnome-thumbnailer-skeleton.h

Packit a4058c
/*
Packit a4058c
 * Copyright (C) 2013 Bastien Nocera <hadess@hadess.net>
Packit a4058c
 *
Packit a4058c
 * Authors: Bastien Nocera <hadess@hadess.net>
Packit a4058c
 *
Packit a4058c
 * This program is free software; you can redistribute it and/or modify
Packit a4058c
 * it under the terms of the GNU General Public License as published by
Packit a4058c
 * the Free Software Foundation; either version 2 of the License, or
Packit a4058c
 * (at your option) any later version.
Packit a4058c
 *
Packit a4058c
 * This program is distributed in the hope that it will be useful,
Packit a4058c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a4058c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit a4058c
 * GNU General Public License for more details.
Packit a4058c
 *
Packit a4058c
 * You should have received a copy of the GNU General Public License
Packit a4058c
 * along with this program; if not, write to the Free Software
Packit a4058c
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Packit a4058c
 *
Packit a4058c
 */
Packit a4058c
Packit a4058c
#include <gdk-pixbuf/gdk-pixbuf.h>
Packit a4058c
Packit a4058c
#ifdef THUMBNAILER_RETURNS_PIXBUF
Packit a4058c
#ifdef THUMBNAILER_RETURNS_DATA
Packit a4058c
#error "Only one of THUMBNAILER_RETURNS_PIXBUF or THUMBNAILER_RETURNS_DATA must be set"
Packit a4058c
#else
Packit a4058c
GdkPixbuf * file_to_pixbuf (const char  *path,
Packit a4058c
			    guint        destination_size,
Packit a4058c
			    GError     **error);
Packit a4058c
#endif
Packit a4058c
#elif THUMBNAILER_RETURNS_DATA
Packit a4058c
char * file_to_data (const char  *path,
Packit a4058c
		     gsize       *ret_length,
Packit a4058c
		     GError     **error);
Packit a4058c
#else
Packit a4058c
#error "One of THUMBNAILER_RETURNS_PIXBUF or THUMBNAILER_RETURNS_DATA must be set"
Packit a4058c
#endif