ecore-wl2: Group connect and disconnect functions together
authorChris Michael <cp.michael@samsung.com>
Thu, 20 Aug 2015 14:57:07 +0000 (10:57 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_display.c

index 13e8e6b..e60a651 100644 (file)
@@ -154,6 +154,19 @@ EAPI Ecore_Wl2_Display *ecore_wl2_display_connect(const char *name);
 EAPI void ecore_wl2_display_disconnect(Ecore_Wl2_Display *display);
 
 /**
+ * Terminate a Wayland display's main loop
+ *
+ * @brief This function is typically used by servers to terminate the
+ * Wayland display main loop. This is usually only called when a server
+ * encounters an error.
+ *
+ * @param display The Ecore_Wl2_Display to terminate
+ *
+ * @ingroup Ecore_Wl2_Display_Group
+ */
+EAPI void ecore_wl2_display_terminate(Ecore_Wl2_Display *display);
+
+/**
  * Retrieve the existing Wayland display
  *
  * @param display The Ecore_Wl2_Display for which to retrieve the existing
@@ -177,19 +190,6 @@ EAPI struct wl_display *ecore_wl2_display_get(Ecore_Wl2_Display *display);
  */
 EAPI struct wl_shm *ecore_wl2_display_shm_get(Ecore_Wl2_Display *display);
 
-/**
- * Terminate a Wayland display's main loop
- *
- * @brief This function is typically used by servers to terminate the
- * Wayland display main loop. This is usually only called when a server
- * encounters an error.
- *
- * @param display The Ecore_Wl2_Display to terminate
- *
- * @ingroup Ecore_Wl2_Display_Group
- */
-EAPI void ecore_wl2_display_terminate(Ecore_Wl2_Display *display);
-
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
index 89baebe..0c16c6d 100644 (file)
@@ -293,20 +293,6 @@ connect_err:
    return NULL;
 }
 
-EAPI struct wl_display *
-ecore_wl2_display_get(Ecore_Wl2_Display *display)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
-   return display->wl.display;
-}
-
-EAPI struct wl_shm *
-ecore_wl2_display_shm_get(Ecore_Wl2_Display *display)
-{
-   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
-   return display->wl.shm;
-}
-
 EAPI void
 ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
 {
@@ -329,3 +315,17 @@ ecore_wl2_display_terminate(Ecore_Wl2_Display *display)
    EINA_SAFETY_ON_NULL_RETURN(display);
    wl_display_terminate(display->wl.display);
 }
+
+EAPI struct wl_display *
+ecore_wl2_display_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return display->wl.display;
+}
+
+EAPI struct wl_shm *
+ecore_wl2_display_shm_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return display->wl.shm;
+}