summaryrefslogtreecommitdiff
path: root/src/tests/ecore_wl2/ecore_wl2_tests_helpers.h
blob: e06cea7859b19083b5ac010d997859d946344d88 (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
#ifndef ECORE_WL2_TEST_HELPERS_H
# define ECORE_WL2_TEST_HELPERS_H

# include <Ecore_Wl2.h>

# define ECORE_WL2_TEST_DISPLAY_SETUP() _setup_display()
# define ECORE_WL2_TEST_DISPLAY_CONNECT() _connect_display()

static Ecore_Wl2_Display *
_setup_display(void)
{
   Ecore_Wl2_Display *disp;

   disp = ecore_wl2_display_create(NULL);
   return disp;
}

static Ecore_Wl2_Display *
_connect_display(void)
{
   Ecore_Wl2_Display *disp;

   disp = ecore_wl2_display_connect(NULL);
   return disp;
}

#endif