2005-02-08 03:46:46 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2004-11-24 19:37:45 -08:00
|
|
|
#ifndef E_H
|
|
|
|
#define E_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
|
|
|
#include <Evas.h>
|
|
|
|
#include <Ecore.h>
|
|
|
|
#include <Ecore_X.h>
|
|
|
|
#include <Ecore_Evas.h>
|
|
|
|
#include <Ecore_Con.h>
|
|
|
|
#include <Ecore_Ipc.h>
|
|
|
|
#include <Ecore_Job.h>
|
|
|
|
#include <Ecore_Txt.h>
|
|
|
|
#include <Ecore_Config.h>
|
2005-02-21 08:16:40 -08:00
|
|
|
#include <Ecore_File.h>
|
2005-01-11 05:11:12 -08:00
|
|
|
#include <Ecore_X_Atoms.h>
|
2004-11-24 19:37:45 -08:00
|
|
|
#include <Eet.h>
|
|
|
|
#include <Edje.h>
|
|
|
|
|
2004-11-24 21:31:21 -08:00
|
|
|
#ifdef EAPI
|
|
|
|
#undef EAPI
|
|
|
|
#endif
|
|
|
|
#ifdef WIN32
|
|
|
|
# ifdef BUILDING_DLL
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# ifdef GCC_HASCLASSVISIBILITY
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
typedef struct _E_Before_Idler E_Before_Idler;
|
2005-01-12 08:03:09 -08:00
|
|
|
typedef struct _E_Rect E_Rect;
|
|
|
|
|
|
|
|
/* convenience macro to compress code and avoid typos */
|
|
|
|
#define E_FN_DEL(_fn, _h) if (_h) { _fn(_h); _h = NULL; }
|
|
|
|
#define E_INTERSECTS(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))
|
|
|
|
#define E_SPANS_COMMON(x1, w1, x2, w2) (!((((x2) + (w2)) <= (x1)) || ((x2) >= ((x1) + (w1)))))
|
|
|
|
#define E_REALLOC(p, s, n) p = realloc(p, sizeof(s) * n)
|
|
|
|
#define E_NEW(s, n) calloc(n, sizeof(s))
|
|
|
|
#define E_NEW_BIG(s, n) malloc(n * sizeof(s))
|
|
|
|
#define E_FREE(p) { if (p) {free(p); p = NULL;} }
|
|
|
|
|
|
|
|
#define E_TYPEDEFS 1
|
|
|
|
#include "e_includes.h"
|
|
|
|
#undef E_TYPEDEFS
|
|
|
|
#include "e_includes.h"
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2004-11-24 21:31:21 -08:00
|
|
|
EAPI E_Before_Idler *e_main_idler_before_add(int (*func) (void *data), void *data, int once);
|
|
|
|
EAPI void e_main_idler_before_del(E_Before_Idler *eb);
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2005-01-12 08:03:09 -08:00
|
|
|
|
|
|
|
struct _E_Before_Idler
|
|
|
|
{
|
|
|
|
int (*func) (void *data);
|
|
|
|
void *data;
|
|
|
|
unsigned char once : 1;
|
|
|
|
unsigned char delete_me : 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Rect
|
|
|
|
{
|
|
|
|
int x, y, w, h;
|
|
|
|
};
|
|
|
|
|
2004-11-24 21:31:21 -08:00
|
|
|
extern EAPI E_Path *path_data;
|
|
|
|
extern EAPI E_Path *path_images;
|
|
|
|
extern EAPI E_Path *path_fonts;
|
|
|
|
extern EAPI E_Path *path_themes;
|
2004-12-23 20:30:58 -08:00
|
|
|
extern EAPI E_Path *path_icons;
|
2004-11-24 21:31:21 -08:00
|
|
|
extern EAPI E_Path *path_init;
|
|
|
|
extern EAPI int restart;
|
2004-11-24 19:37:45 -08:00
|
|
|
|
|
|
|
#endif
|