summaryrefslogtreecommitdiff
path: root/src/bin/common.h
blob: 74771e9c0e225ca6a1fa2112298496d8da775f71 (plain) (blame)
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
#ifndef __COMMON_H__
#define __COMMON_H__

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#ifdef E_API
#undef E_API
#endif

#ifdef __GNUC__
# if __GNUC__ >= 4
#  define E_API __attribute__ ((visibility("default")))
# else
#  define E_API
# endif
#else
# define E_API
#endif

#include <Ecore.h>
#include <Elementary.h>

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "translation.h"

#define BASE_VOLUME_STEP 10
#define EMIXER_THEME PACKAGE_DATA_DIR"/data/themes/default.edj"

E_API extern int _log_domain;

#define CRIT(...)     EINA_LOG_DOM_CRIT(_log_domain, __VA_ARGS__)
#define ERR(...)      EINA_LOG_DOM_ERR(_log_domain, __VA_ARGS__)
#define WRN(...)      EINA_LOG_DOM_WARN(_log_domain, __VA_ARGS__)
#define INF(...)      EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__)
#define DBG(...)      EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__)

Eina_Bool emixer_common_init(const char *domain);
void emixer_common_shutdown(void);
Evas_Object *emixer_layout_add(Evas_Object *parent, const char *group,
                               const char *style);

#endif /* __COMMON_H__ */