summaryrefslogtreecommitdiff
path: root/src/lib/efl_canvas_wl/Efl_Canvas_Wl.h
blob: b0c0772ab8baf25ebd2ba5c501ebf6a0f4954f58 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef EFL_CANVAS_WL_H
# define EFL_CANVAS_WL_H
#include <Evas.h>
#include <Efl_Core.h>

#ifdef EAPI
# undef EAPI
#endif
#ifdef EAPI_WEAK
# undef EAPI_WEAK
#endif

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

#define EWAPI EAPI EAPI_WEAK

#ifdef WAYLAND_UTIL_H
typedef struct wl_surface Efl_Canvas_Wl_Wl_Surface;
typedef struct wl_global Efl_Canvas_Wl_Wl_Global;
typedef struct wl_interface Efl_Canvas_Wl_Wl_Interface;
typedef struct wl_array Efl_Canvas_Wl_Wl_Array;
typedef void Efl_Canvas_Wl_Wl_Interface_Data;
typedef void Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
#else
typedef struct Efl_Canvas_Wl_Wl_Surface Efl_Canvas_Wl_Wl_Surface;
typedef struct Efl_Canvas_Wl_Wl_Global Efl_Canvas_Wl_Wl_Global;
typedef struct Efl_Canvas_Wl_Wl_Interface Efl_Canvas_Wl_Wl_Interface;
typedef struct Efl_Canvas_Wl_Wl_Array Efl_Canvas_Wl_Wl_Array;
typedef void * Efl_Canvas_Wl_Wl_Interface_Data;
typedef void * Efl_Canvas_Wl_Wl_Interface_Bind_Cb;
#endif
#ifdef _XKBCOMMON_H_
typedef struct xkb_state Efl_Canvas_Wl_Xkb_State;
#else
typedef struct Efl_Canvas_Wl_Xkb_State Efl_Canvas_Wl_Xkb_State;
#endif
#include <efl_canvas_wl_surface.eo.h>
#include <efl_canvas_wl.eo.h>
/**
 * Get the Evas_Object for an extracted wl_surface resource created by an efl_canvas_wl object
 *
 * @note Passing anything other than a valid wl_surface resource from an efl_canvas_wl object will guarantee a crash.
 *
 * @param surface_resource The wl_resource for a wl_surface
 * @return The Evas_Object of the surface, NULL on failure
 * @since 1.24
 */
EAPI Evas_Object *efl_canvas_wl_extracted_surface_object_find(void *surface_resource);
#undef EAPI
#define EAPI
#undef EAPI_WEAK
#define EAPI_WEAK
#endif