Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib
Modified Files:
image.h
Log Message:
DISPLAY_MISSING define from spanky
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/image.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- image.h 16 Jan 2005 18:23:47 -0000 1.2
+++ image.h 23 Feb 2005 03:12:04 -0000 1.3
@@ -1,18 +1,20 @@
#ifndef __IMAGE
# define __IMAGE 1
-#include "common.h"
-#ifdef BUILD_X11
-#include <X11/Xlib.h>
-#endif
+# include "common.h"
+# ifdef BUILD_X11
+# include <X11/Xlib.h>
+# else
+# define X_DISPLAY_MISSING
+# endif
-#include <dlfcn.h>
-#include <Imlib2.h>
+# include <dlfcn.h>
+# include <Imlib2.h>
typedef struct _imlibimage ImlibImage;
-#ifdef BUILD_X11
+# ifdef BUILD_X11
typedef struct _imlibimagepixmap ImlibImagePixmap;
-#endif
+# endif
typedef struct _imlibborder ImlibBorder;
typedef struct _imlibloader ImlibLoader;
typedef struct _imlibimagetag ImlibImageTag;
@@ -69,7 +71,7 @@
char *key;
};
-#ifdef BUILD_X11
+# ifdef BUILD_X11
struct _imlibimagepixmap
{
int w, h;
@@ -88,7 +90,7 @@
DATABIG modification_count;
ImlibImagePixmap *next;
};
-#endif
+# endif
struct _imlibloader
{
@@ -121,7 +123,7 @@
void __imlib_RemoveImageFromCache(ImlibImage *im);
int __imlib_CurrentCacheSize(void);
void __imlib_CleanupImageCache(void);
-#ifdef BUILD_X11
+# ifdef BUILD_X11
ImlibImagePixmap *__imlib_ProduceImagePixmap(void);
void __imlib_ConsumeImagePixmap(ImlibImagePixmap *ip);
ImlibImagePixmap *__imlib_FindCachedImagePixmap(ImlibImage *im, int w, int h,
@@ -134,7 +136,7 @@
void __imlib_AddImagePixmapToCache(ImlibImagePixmap *ip);
void __imlib_RemoveImagePixmapFromCache(ImlibImagePixmap *ip);
void __imlib_CleanupImagePixmapCache(void);
-#endif
+# endif
ImlibLoader *__imlib_ProduceLoader(char *file);
char **__imlib_ListLoaders(int *num_ret);
char **__imlib_TrimLoaderList(char **list, int *num);
@@ -151,19 +153,19 @@
ImlibProgressFunction progress,
char progress_granularity, char
immediate_load,
char dont_cache, ImlibLoadError *er);
-#ifdef BUILD_X11
+# ifdef BUILD_X11
ImlibImagePixmap *__imlib_FindImlibImagePixmapByID(Display *d, Pixmap p);
-#endif
+# endif
void __imlib_FreeImage(ImlibImage *im);
-#ifdef BUILD_X11
+# ifdef BUILD_X11
void __imlib_FreePixmap(Display *d, Pixmap p);
-#endif
+# endif
void __imlib_FlushCache(void);
-#ifdef BUILD_X11
+# ifdef BUILD_X11
void __imlib_DirtyPixmapsForImage(ImlibImage *im);
-#else
-#define __imlib_DirtyPixmapsForImage(x) /* x */
-#endif
+# else
+# define __imlib_DirtyPixmapsForImage(x) /* x */
+# endif
void __imlib_DirtyImage(ImlibImage *im);
void __imlib_SaveImage(ImlibImage *im, const char *file,
ImlibProgressFunction progress,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs