e_hwc: add e_hwc_output_id_get 94/209994/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 15 Jul 2019 02:28:25 +0000 (11:28 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 15 Jul 2019 04:42:08 +0000 (13:42 +0900)
get the output id from the hwc.

Change-Id: I7a1893f187ed3c486668c62acc6941838f334375

src/bin/e_hwc.c
src/bin/e_hwc.h

index 0ce46172799e46345d9bd685ed8790614a015ede..7d67a6c9699f5fc4a2a3bd741b9b05cdba526451 100644 (file)
@@ -474,6 +474,16 @@ e_hwc_client_is_above_hwc(E_Client *ec, E_Client *hwc_ec)
    return EINA_FALSE;
 }
 
+EINTERN char *
+e_hwc_output_id_get(E_Hwc *hwc)
+{
+   if (!hwc) return "NULL";
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(hwc->output, NULL);
+
+   return hwc->output->id;
+}
+
 static const char *
 _e_hwc_prop_name_get_by_id(E_Hwc *hwc, unsigned int id)
 {
index fcf1d94bb9d7b665ee285a5a5234ebdfc7f29425..4d386bc0008017d5e9f46325bc574c1c80db6527 100644 (file)
@@ -131,6 +131,7 @@ EINTERN E_Hwc_Mode    e_hwc_mode_get(E_Hwc *hwc);
 EINTERN void          e_hwc_deactive_set(E_Hwc *hwc, Eina_Bool set);
 EINTERN Eina_Bool     e_hwc_deactive_get(E_Hwc *hwc);
 EINTERN Eina_Bool     e_hwc_client_is_above_hwc(E_Client *ec, E_Client *hwc_ec);
+EINTERN char         *e_hwc_output_id_get(E_Hwc *hwc);
 
 EINTERN Eina_Bool     e_hwc_intercept_hook_call(E_Hwc_Intercept_Hook_Point hookpoint, E_Hwc *hwc);