forked from enlightenment/efl
parent
36862709f6
commit
f09616a23c
|
@ -1,5 +1,5 @@
|
|||
#ifndef _ECORE_CONFIG_H
|
||||
#define _ECORE_CONFIG_H
|
||||
# define _ECORE_CONFIG_H
|
||||
|
||||
/**
|
||||
* @file Ecore_Config.h
|
||||
|
@ -22,31 +22,31 @@
|
|||
*/
|
||||
|
||||
|
||||
#define DIR_DELIMITER '/'
|
||||
#define ECORE_CONFIG_FLOAT_PRECISION 1000
|
||||
# define DIR_DELIMITER '/'
|
||||
# define ECORE_CONFIG_FLOAT_PRECISION 1000
|
||||
|
||||
#ifndef TRUE
|
||||
# ifndef TRUE
|
||||
# define FALSE (0)
|
||||
# define TRUE (!FALSE)
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#include <Ecore_Ipc.h>
|
||||
# include <Ecore_Ipc.h>
|
||||
/* this should only be included if evas is present */
|
||||
#include <Evas.h>
|
||||
# include <Evas.h>
|
||||
|
||||
/* debug */
|
||||
#define DEBUG 1
|
||||
#undef ECORE_CONFIG_DEBUG
|
||||
# define DEBUG 1
|
||||
# undef ECORE_CONFIG_DEBUG
|
||||
|
||||
#ifdef ECORE_CONFIG_DEBUG
|
||||
# ifdef ECORE_CONFIG_DEBUG
|
||||
# define D(fmt,args...) do { if(DEBUG>=0) fprintf(stderr,fmt,## args); } while(0);
|
||||
# define E(lvl,args...) do { if(DEBUG>=(lvl)) fprintf(stderr,## args); } while(0)
|
||||
#else
|
||||
# else
|
||||
# define D(msg,args...)
|
||||
# define E(lvl,args...) do { } while(0)
|
||||
#endif
|
||||
# endif
|
||||
|
||||
#define ECORE_CONFIG_GLOBAL_ID "_system"
|
||||
# define ECORE_CONFIG_GLOBAL_ID "_system"
|
||||
|
||||
/* structures */
|
||||
|
||||
|
@ -114,6 +114,10 @@ typedef struct Ecore_Config_Server {
|
|||
Ecore_Config_Bundle *bundles; /* data anchor */
|
||||
struct Ecore_Config_Server *next; } Ecore_Config_Server;
|
||||
|
||||
# ifdef __cplusplus
|
||||
extern "C" {
|
||||
# endif
|
||||
|
||||
/* global ptrs to save passing them through the API */
|
||||
extern Ecore_Config_Server *__ecore_config_server_global;
|
||||
extern Ecore_Config_Server *__ecore_config_server_local;
|
||||
|
@ -190,9 +194,11 @@ int ecore_config_save_file(char *file);
|
|||
# define ECORE_CONFIG_ERR_FAIL (-1)
|
||||
# define ECORE_CONFIG_ERR_SUCC (0)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* convenience mathods in convenience.c */
|
||||
int ecore_config_evas_font_path_apply(Evas *evas);
|
||||
void ecore_config_prop_list_describe(void);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue