[ecore] merged svn latest code (svn54830)
[profile/ivi/ecore.git] / src / lib / ecore_x / xcb / ecore_xcb_composite.c
index e2c9a21..bf7b9aa 100644 (file)
@@ -1,7 +1,3 @@
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
-
 #include "ecore_xcb_private.h"
 
 /**
@@ -15,7 +11,6 @@ static uint8_t _composite_available = 0;
 static xcb_composite_query_version_cookie_t _ecore_xcb_composite_init_cookie;
 #endif /* ECORE_XCB_COMPOSITE */
 
-
 /* To avoid round trips, the initialization is separated in 2
    functions: _ecore_xcb_composite_init and
    _ecore_xcb_composite_init_finalize. The first one gets the cookies and
@@ -27,8 +22,9 @@ _ecore_x_composite_init(const xcb_query_extension_reply_t *reply)
 #ifdef ECORE_XCB_COMPOSITE
    if (reply && reply->present)
       _ecore_xcb_composite_init_cookie = xcb_composite_query_version_unchecked(_ecore_xcb_conn, XCB_COMPOSITE_MAJOR_VERSION, XCB_COMPOSITE_MINOR_VERSION);
+
 #endif /* ECORE_XCB_COMPOSITE */
-}
+} /* _ecore_x_composite_init */
 
 void
 _ecore_x_composite_init_finalize(void)
@@ -37,17 +33,19 @@ _ecore_x_composite_init_finalize(void)
    xcb_composite_query_version_reply_t *reply;
 
    reply = xcb_composite_query_version_reply(_ecore_xcb_conn,
-                                          _ecore_xcb_composite_init_cookie,
-                                          NULL);
+                                             _ecore_xcb_composite_init_cookie,
+                                             NULL);
    if (reply)
      {
         if ((reply->major_version == XCB_COMPOSITE_MAJOR_VERSION) &&
-           (reply->minor_version >= XCB_COMPOSITE_MINOR_VERSION))
-          _composite_available = 1;
+            (reply->minor_version >= XCB_COMPOSITE_MINOR_VERSION))
+           _composite_available = 1;
+
         free(reply);
      }
+
 #endif /* ECORE_XCB_COMPOSITE */
-}
+} /* _ecore_x_composite_init_finalize */
 
 /**
  * Return whether the Composite Extension is available.
@@ -57,12 +55,13 @@ _ecore_x_composite_init_finalize(void)
  * or greater, 0 otherwise.
  * @ingroup Ecore_X_Composite_Group
  */
-EAPI int
+EAPI Eina_Bool
 ecore_x_composite_query(void)
 {
 #ifdef ECORE_XCB_COMPOSITE
    return _composite_available;
-#else
+#else /* ifdef ECORE_XCB_COMPOSITE */
    return 0;
 #endif /* ECORE_XCB_COMPOSITE */
-}
+} /* ecore_x_composite_query */
+