devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e0454373f8304bbb2cbb6cd7b4834beb4f7164d2

commit e0454373f8304bbb2cbb6cd7b4834beb4f7164d2
Author: Chris Michael <[email protected]>
Date:   Tue Jun 13 12:11:13 2017 -0400

    ecore-wl2: Add API function to get list of supported auxiliary hints
    
    @feature
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        | 12 ++++++++++++
 src/lib/ecore_wl2/ecore_wl2_window.c | 14 ++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 03d6db5b34..69e0c778d4 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -1097,6 +1097,18 @@ EAPI void 
ecore_wl2_window_rotation_change_request_send(Ecore_Wl2_Window *window
 EAPI void ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, 
int rot, int w, int h);
 
 /**
+ * Get list of supported auxiliary window hints
+ *
+ * @param window
+ *
+ * @return An Eina_List of supported auxiliary hints, or NULL otherwise
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI Eina_List *ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window 
*window);
+
+/**
  * @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
  * @ingroup Ecore_Wl2_Group
  *
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index 618ebb8f5a..12c888a887 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1368,3 +1368,17 @@ 
ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, in
    ecore_event_add(ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE,
                    ev, NULL, NULL);
 }
+
+EAPI Eina_List *
+ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window *window)
+{
+   Eina_List *ret = NULL;
+   Ecore_Wl2_Aux_Hint *ehint;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL);
+
+   EINA_INLIST_FOREACH(window->supported_aux_hints, ehint)
+     ret = eina_list_append(ret, eina_stringshare_add(ehint->val));
+
+   return ret;
+}

-- 


Reply via email to