-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
-
#include "ecore_xcb_private.h"
/**
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
#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)
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.
* 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 */
+