summaryrefslogtreecommitdiff
path: root/src/lib/ecore_buffer/ecore_buffer_private.h
blob: 4487ea2a2c81d792e0a3fa5029b1f11b1bbe8b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _ECORE_BUFFER_PRIVATE_H_
# define _ECORE_BUFFER_PRIVATE_H_

# ifdef ERR
#  undef ERR
# endif
# ifdef WARN
#  undef WARN
# endif
# ifdef DBG
#  undef DBG
# endif

# define ERR(...)  EINA_LOG_DOM_ERR(_ecore_buffer_queue_log_dom, __VA_ARGS__)
# define DBG(...)  EINA_LOG_DOM_DBG(_ecore_buffer_queue_log_dom, __VA_ARGS__)
# define WARN(...) EINA_LOG_DOM_WARN(_ecore_buffer_queue_log_dom, __VA_ARGS__)

# define CALLBACK_CALL(obj, cbname)           \
   do {                                       \
      if (obj->cb.cbname)                     \
        obj->cb.cbname(obj, obj->cb.data);    \
   } while(0)

extern int _ecore_buffer_queue_log_dom;

const char        *_ecore_buffer_engine_name_get(Ecore_Buffer *buf);

/* NOTE: if Ecore_Export_Type as a return value is EXPORT_TYPE_FD,
 * then caller should close the fd after using it. */
Ecore_Export_Type  _ecore_buffer_export(Ecore_Buffer *buf, int *id);
Ecore_Buffer      *_ecore_buffer_import(const char *engine, int width, int height, Ecore_Buffer_Format format, Ecore_Export_Type type, int export_id, unsigned int flags);
#endif /* _ECORE_BUFFER_PRIVATE_H_ */