summaryrefslogtreecommitdiff
path: root/src/lib/embryo/embryo_private.h
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2015-12-30 09:14:36 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2015-12-30 09:18:07 +0900
commit60847e9c1fadd910ce0443fded32b88e424088a4 (patch)
tree53d9600e09c474ef77817a4cb249cbae7475202a /src/lib/embryo/embryo_private.h
parent0d6383d69f18b87fbf5ec2b87817baa80b32a4bd (diff)
embryo: add eina_log
Summary: add eina_log Test Plan: use DBG, ERR ... in embryo code Reviewers: raster, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3507
Diffstat (limited to '')
-rw-r--r--src/lib/embryo/embryo_private.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/embryo/embryo_private.h b/src/lib/embryo/embryo_private.h
index c65a1abfe5..b63dbbdc8b 100644
--- a/src/lib/embryo/embryo_private.h
+++ b/src/lib/embryo/embryo_private.h
@@ -1,6 +1,8 @@
1#ifndef _EMBRYO_PRIVATE_H 1#ifndef _EMBRYO_PRIVATE_H
2#define _EMBRYO_PRIVATE_H 2#define _EMBRYO_PRIVATE_H
3 3
4#include <Eina.h>
5
4typedef enum _Embryo_Opcode Embryo_Opcode; 6typedef enum _Embryo_Opcode Embryo_Opcode;
5 7
6enum _Embryo_Opcode 8enum _Embryo_Opcode
@@ -146,6 +148,33 @@ enum _Embryo_Opcode
146 EMBRYO_OP_NUM_OPCODES 148 EMBRYO_OP_NUM_OPCODES
147}; 149};
148 150
151EAPI extern int _embryo_default_log_dom ;
152
153#ifdef EMBRYO_DEFAULT_LOG_COLOR
154# undef EMBRYO_DEFAULT_LOG_COLOR
155#endif
156#define EMBRYO_DEFAULT_LOG_COLOR EINA_COLOR_CYAN
157#ifdef ERR
158# undef ERR
159#endif
160#define ERR(...) EINA_LOG_DOM_ERR(_embryo_default_log_dom, __VA_ARGS__)
161#ifdef INF
162# undef INF
163#endif
164#define INF(...) EINA_LOG_DOM_INFO(_embryo_default_log_dom, __VA_ARGS__)
165#ifdef WRN
166# undef WRN
167#endif
168#define WRN(...) EINA_LOG_DOM_WARN(_embryo_default_log_dom, __VA_ARGS__)
169#ifdef CRI
170# undef CRI
171#endif
172#define CRI(...) EINA_LOG_DOM_CRIT(_embryo_default_log_dom, __VA_ARGS__)
173#ifdef DBG
174# undef DBG
175#endif
176#define DBG(...) EINA_LOG_DOM_DBG(_embryo_default_log_dom, __VA_ARGS__)
177
149#define NUMENTRIES(hdr, field, nextfield) \ 178#define NUMENTRIES(hdr, field, nextfield) \
150(int)(((hdr)->nextfield - (hdr)->field) / (hdr)->defsize) 179(int)(((hdr)->nextfield - (hdr)->field) / (hdr)->defsize)
151#define GETENTRY(hdr, table, index) \ 180#define GETENTRY(hdr, table, index) \