summaryrefslogtreecommitdiff
path: root/src/bin/common.h
blob: 4a399f9d1cd997de5696ae8b6a39937a46b170d6 (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
#ifndef __COMMON_H__
#define __COMMON_H__

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#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"

EAPI 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__ */