2009-08-28 23:42:11 +02:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
main.c
|
|
|
|
|
|
|
|
(c) 2000-2009 Benoît Minisini <gambas@users.sourceforge.net>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#define __MAIN_C
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
#include "c_image.h"
|
2011-02-23 02:03:35 +01:00
|
|
|
#include "c_imlib.h"
|
2009-08-28 23:42:11 +02:00
|
|
|
|
|
|
|
GB_INTERFACE GB EXPORT;
|
|
|
|
IMAGE_INTERFACE IMAGE EXPORT;
|
|
|
|
|
|
|
|
GB_DESC *GB_CLASSES[] EXPORT =
|
|
|
|
{
|
2011-02-23 02:03:35 +01:00
|
|
|
ImageDesc,
|
|
|
|
//ImlibDesc,
|
2009-08-28 23:42:11 +02:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
int EXPORT GB_INIT(void)
|
|
|
|
{
|
|
|
|
GB.GetInterface("gb.image", IMAGE_INTERFACE_VERSION, &IMAGE);
|
2009-08-30 01:26:44 +02:00
|
|
|
imlib_set_cache_size(0);
|
2010-01-10 14:40:48 +01:00
|
|
|
return 0;
|
2009-08-28 23:42:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void EXPORT GB_EXIT()
|
|
|
|
{
|
|
|
|
}
|