e-comp-wl: Enable sending of the surface_create signal from the

compositor and provide an API function to retrieve that signal (used
in a pending commit)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-13 15:51:14 -04:00
parent b072a54499
commit 2b9b18e5fa
1 changed files with 25 additions and 17 deletions

View File

@ -99,23 +99,29 @@ struct _E_Comp_Wl_Data
struct wl_event_loop *loop;
} wl;
/* NB: At the moment, we don't need these */
/* struct */
/* { */
/* struct wl_signal destroy; */
/* struct wl_signal activate; */
/* struct wl_signal transform; */
/* struct wl_signal kill; */
/* struct wl_signal idle; */
/* struct wl_signal wake; */
/* struct wl_signal session; */
/* struct */
/* { */
/* struct wl_signal created; */
/* struct wl_signal destroyed; */
/* struct wl_signal moved; */
/* } seat, output; */
/* } signals; */
struct
{
struct
{
struct wl_signal create;
struct wl_signal activate;
struct wl_signal kill;
} surface;
/* NB: At the moment, we don't need these */
/* struct wl_signal destroy; */
/* struct wl_signal activate; */
/* struct wl_signal transform; */
/* struct wl_signal kill; */
/* struct wl_signal idle; */
/* struct wl_signal wake; */
/* struct wl_signal session; */
/* struct */
/* { */
/* struct wl_signal created; */
/* struct wl_signal destroyed; */
/* struct wl_signal moved; */
/* } seat, output; */
} signals;
struct
{
@ -267,6 +273,8 @@ EINTERN struct wl_resource *e_comp_wl_surface_create(struct wl_client *client, i
EINTERN void e_comp_wl_surface_destroy(struct wl_resource *resource);
EINTERN void e_comp_wl_buffer_reference(E_Comp_Wl_Buffer_Ref *ref, E_Comp_Wl_Buffer *buffer);
EAPI struct wl_signal e_comp_wl_surface_signal_get(E_Comp *comp);
static inline uint64_t
e_comp_wl_id_get(uint32_t client, uint32_t surface)
{