cbf37648d2522860ec5077f2ad5645c70a47ee25
[apps/livebox/data-provider-master.git] / src / util_x11.c
1 #include <Ecore_X.h>
2
3 #if defined(HAVE_LIVEBOX)
4 #include <livebox-errno.h>
5 #else
6 #include "lite-errno.h"
7 #endif
8 #include "util.h"
9
10 int util_screen_size_get(int *width, int *height)
11 {
12         ecore_x_window_size_get(0, width, height);
13         return LB_STATUS_SUCCESS;
14 }
15
16 int util_screen_init(void)
17 {
18         return ecore_x_init(NULL);
19 }
20
21 int util_screen_fini(void)
22 {
23         return ecore_x_shutdown();
24 }
25
26 /* End of a file */
27