+++ /dev/null
-#ifndef E_LOG_CLIENT_H
-#define E_LOG_CLIENT_H
-
-#include "e_log_intern.h"
-#include "e_client_intern.h"
-#include "e_pixmap_intern.h"
-
-#ifdef E_LOGGING
-
-static inline Ecore_Window
-e_log_client_util_win_get(const E_Client *ec)
-{
- if (!ec) return 0;
- if (!ec->pixmap) return 0;
- return e_pixmap_window_get(ec->pixmap);
-}
-
-# if (E_LOGGING >= 2) /* new version */
-# define ELOG(t, ec) \
- do \
- { \
- if (ec) \
- INF("%8.8s|w:0x%08zx|ec:%8p|", \
- (t), (e_log_client_util_win_get(ec)), (ec)); \
- else \
- INF("%8.8s| | |", \
- (t)); \
- } \
- while (0)
-
-# define ELOGF(t, f, ec, x...) \
- do \
- { \
- if (ec) \
- INF("%8.8s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- INF("%8.8s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFD(t, f, ec, x...) \
- do \
- { \
- if (ec) \
- DBG("%8.8s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- DBG("%8.8s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFE(t, f, ec, x...) \
- do \
- { \
- if (ec) \
- ERR("%8.8s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- ERR("%8.8s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-# else /* old version */
-# define ELOG(t, cp, ec) \
- do \
- { \
- if (ec) \
- INF("%10.10s|w:0x%08zx|ec:%8p|", \
- (t), (e_log_client_util_win_get(ec)), (ec)); \
- else \
- INF("%10.10s| | |", \
- (t)); \
- } \
- while (0)
-
-# define ELOGF(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- INF("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- INF("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFD(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- DBG("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- DBG("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-
-# define ELOGFE(t, f, cp, ec, x...) \
- do \
- { \
- if (ec) \
- ERR("%10.10s|w:0x%08zx|ec:%8p|"f, \
- (t), (e_log_client_util_win_get(ec)), (ec), ##x); \
- else \
- ERR("%10.10s| | |"f, \
- (t), ##x); \
- } \
- while (0)
-# endif /* end of if (E_LOGGING >= 2) */
-#else // E_LOGGING
-
-#undef ELOG
-#undef ELOGF
-#define ELOG(...) ;
-#define ELOGF(...) ;
-
-#endif // E_LOGGING
-
-#endif