summaryrefslogtreecommitdiff
path: root/src/bin/e_fm/e_fm_main.h
blob: 1ff95eff3e56b3da34d8293b2d90a03c4b04df1f (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef E_FM_MAIN_H
#define E_FM_MAIN_H

#include <Ecore_Ipc.h>
#undef DBG
#undef INF
#undef WRN
#undef ERR
#undef CRI
#define DBG(...)            EINA_LOG_DOM_DBG(efm_log_dom, __VA_ARGS__)
#define INF(...)            EINA_LOG_DOM_INFO(efm_log_dom, __VA_ARGS__)
#define WRN(...)            EINA_LOG_DOM_WARN(efm_log_dom, __VA_ARGS__)
#define ERR(...)            EINA_LOG_DOM_ERR(efm_log_dom, __VA_ARGS__)
#define CRI(...)            EINA_LOG_DOM_CRIT(efm_log_dom, __VA_ARGS__)

# ifdef E_API
#  undef E_API
# endif
# ifdef WIN32
#  ifdef BUILDING_DLL
#   define E_API __declspec(dllexport)
#  else
#   define E_API __declspec(dllimport)
#  endif
# else
#  ifdef __GNUC__
#   if __GNUC__ >= 4
/* BROKEN in gcc 4 on amd64 */
#    if 0
#     pragma GCC visibility push(hidden)
#    endif
#    define E_API __attribute__ ((visibility("default")))
#   else
#    define E_API
#   endif
#  else
#   define E_API
#  endif
# endif

extern Ecore_Ipc_Server *_e_fm_ipc_server;
extern int efm_log_dom;

void _e_fm_main_catch(unsigned int val);

#define E_FM_MOUNT_TIMEOUT 30.0
#define E_FM_UNMOUNT_TIMEOUT 60.0
#define E_FM_EJECT_TIMEOUT 15.0

#endif