On Thu, Feb 28, 2013 at 6:17 PM, Rafael Antognolli - Enlightenment Git
<[email protected]> wrote:
> antognolli pushed a commit to branch devs/antognolli/backport.
>
> commit 21ef489d00dbc56238d967f9b1a0874c490aae1f
> Author: Rafael Antognolli <[email protected]>
Now with git you can specify the author of the patch in cases like
this with --author. From the git commit man page
--author=<author>
Override the commit author. Specify an explicit author
using the standard A U Thor <[email protected]> format. Otherwise
<author> is assumed to be a pattern and is used to search for an
existing commit by that author (i.e. rev-list --all -i
--author=<author>); the commit author is then copied from the first
such commit found.
Cheers, Etrunko
> Date: Thu Feb 28 17:59:19 2013 -0300
>
> Backport r83642.
>
> Export API to C++, add wl_registry and global accessors
>
> Add #ifdef __cpluscplus to Ecore_Wayland.h so the API can be used by C++
> programs. Add accessors for the wl_registry and the globals list.
>
> Patch by: "U. Artie Eoff" <[email protected]>
> ---
> ChangeLog | 8 +++++++-
> src/lib/ecore_wayland/Ecore_Wayland.h | 26 ++++++++++++++++++++++++--
> src/lib/ecore_wayland/ecore_wl.c | 15 +++++++++++++++
> 3 files changed, 46 insertions(+), 3 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 7043252..5d68924 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1099,4 +1099,10 @@
> 2013-02-20 Carsten Haitzler (The Rasterman)
>
> * Fix ecore-x edid fetch to ftech 128, not 100 bytes.
> -
> +
> +2013-02-28 U. Artie Eoff (uartie)
> +
> + * ecore_wayland: Add #ifdef __cplusplus to Ecore_Wayland.h so the
> + API can be used by C++ programs.
> + * ecore_wayland: Add ecore_wl_registry_get
> + * ecore_wayland: Add ecore_wl_globals_get
> diff --git a/src/lib/ecore_wayland/Ecore_Wayland.h
> b/src/lib/ecore_wayland/Ecore_Wayland.h
> index d1279fe..f557644 100644
> --- a/src/lib/ecore_wayland/Ecore_Wayland.h
> +++ b/src/lib/ecore_wayland/Ecore_Wayland.h
> @@ -33,7 +33,7 @@ extern "C" {
> typedef struct _Ecore_Wl_Display Ecore_Wl_Display;
> typedef struct _Ecore_Wl_Output Ecore_Wl_Output;
> typedef struct _Ecore_Wl_Input Ecore_Wl_Input;
> -typedef struct _Ecore_Wl_Global Ecore_Wl_Global;
> +typedef struct _Ecore_Wl_Global Ecore_Wl_Global; /** @since 1.8 */
>
> # ifndef _ECORE_WAYLAND_WINDOW_PREDEF
> typedef struct _Ecore_Wl_Window Ecore_Wl_Window;
> @@ -76,6 +76,7 @@ enum _Ecore_Wl_Window_Buffer_Type
> typedef enum _Ecore_Wl_Window_Type Ecore_Wl_Window_Type;
> typedef enum _Ecore_Wl_Window_Buffer_Type Ecore_Wl_Window_Buffer_Type;
>
> +/** @since 1.8 */
> struct _Ecore_Wl_Global
> {
> unsigned int id;
> @@ -105,7 +106,7 @@ struct _Ecore_Wl_Display
>
> struct wl_list inputs;
> struct wl_list outputs;
> - struct wl_list globals;
> + struct wl_list globals; /** @since 1.8 */
>
> struct
> {
> @@ -373,6 +374,27 @@ EAPI void
> ecore_wl_input_cursor_default_restore(Ecore_Wl_Input *input);
>
> EAPI struct wl_list *ecore_wl_outputs_get(void);
>
> +/**
> + * Retrieves the Wayland Globals Interface list used for the current Wayland
> connection.
> + *
> + * @return The current wayland globals interface list
> + *
> + * @ingroup Ecore_Wl_Display_Group
> + * @since 1.7.6
> + */
> +EAPI struct wl_list *ecore_wl_globals_get(void);
> +
> +/**
> + * Retrieves the Wayland Registry used for the current Wayland connection.
> + *
> + * @return The current wayland registry
> + *
> + * @ingroup Ecore_Wl_Display_Group
> + * @since 1.7.6
> + */
> +EAPI struct wl_registry *ecore_wl_registry_get(void);
> +
> +
> EAPI Ecore_Wl_Window *ecore_wl_window_new(Ecore_Wl_Window *parent, int x,
> int y, int w, int h, int buffer_type);
> EAPI void ecore_wl_window_free(Ecore_Wl_Window *win);
> EAPI void ecore_wl_window_move(Ecore_Wl_Window *win, int x, int y);
> diff --git a/src/lib/ecore_wayland/ecore_wl.c
> b/src/lib/ecore_wayland/ecore_wl.c
> index cc7dfd4..a20d97f 100644
> --- a/src/lib/ecore_wayland/ecore_wl.c
> +++ b/src/lib/ecore_wayland/ecore_wl.c
> @@ -289,6 +289,18 @@ ecore_wl_display_get(void)
> return _ecore_wl_disp->wl.display;
> }
>
> +EAPI struct wl_list *
> +ecore_wl_globals_get(void)
> +{
> + return &(_ecore_wl_disp->globals);
> +}
> +
> +EAPI struct wl_registry *
> +ecore_wl_registry_get(void)
> +{
> + return _ecore_wl_disp->wl.registry;
> +}
> +
> /**
> * Retrieves the size of the current screen.
> *
> @@ -500,6 +512,9 @@ _ecore_wl_cb_handle_global(void *data, struct wl_registry
> *registry, unsigned in
> ewd = data;
>
> global = malloc(sizeof(*global));
> +
> + memset(global, 0, sizeof(Ecore_Wl_Global));
> +
> global->id = id;
> global->interface = strdup(interface);
> global->version = version;
>
> --
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
--
Eduardo de Barros Lima ◤✠◢
[email protected]
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel