summaryrefslogtreecommitdiff
path: root/src/lib/common.h
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2013-09-01 19:41:13 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-04-03 16:23:04 -0300
commit196cdb70b84958dd827797f86e78abd798e48cf7 (patch)
treefa94c67c0794b8dd8d64b8e216daccc20801c584 /src/lib/common.h
parentc984cf740b8625571a5d1617e0c3911fc27c11f9 (diff)
Adding common code
Init/shutdown used libraries and including common headers.
Diffstat (limited to 'src/lib/common.h')
-rw-r--r--src/lib/common.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/common.h b/src/lib/common.h
new file mode 100644
index 0000000..66b3925
--- /dev/null
+++ b/src/lib/common.h
@@ -0,0 +1,31 @@
1#ifndef __COMMON_H__
2#define __COMMON_H__
3
4#ifndef _GNU_SOURCE
5#define _GNU_SOURCE
6#endif
7
8#include <Ecore.h>
9#include <Evas.h>
10#include <Elementary.h>
11
12#include <stdlib.h>
13#include <stdio.h>
14#include <string.h>
15
16#define EPULSE_THEME PACKAGE_DATA_DIR"/data/themes/default.edj"
17
18EAPI extern int _log_domain;
19
20#define CRIT(...) EINA_LOG_DOM_CRIT(_log_domain, __VA_ARGS__)
21#define ERR(...) EINA_LOG_DOM_ERR(_log_domain, __VA_ARGS__)
22#define WRN(...) EINA_LOG_DOM_WARN(_log_domain, __VA_ARGS__)
23#define INF(...) EINA_LOG_DOM_INFO(_log_domain, __VA_ARGS__)
24#define DBG(...) EINA_LOG_DOM_DBG(_log_domain, __VA_ARGS__)
25
26EAPI Eina_Bool epulse_common_init(const char *domain);
27EAPI void epulse_common_shutdown(void);
28EAPI Evas_Object *epulse_layout_add(Evas_Object *parent, const char *group,
29 const char *style);
30
31#endif /* __COMMON_H__ */