diff options
author | Jamey Sharp <jamey@minilop.net> | 2005-12-12 19:05:34 +0000 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2005-12-12 19:05:34 +0000 |
commit | c9a1ad1770e5427624bbbea77365f0e911352d0e (patch) | |
tree | d352bac53a30fc31fe38bc09b99b14f63b3d27b1 | |
parent | 5bd42c524e18c343dc78f9b0bf52adb9c082eda1 (diff) |
Removed last traces of xcb-convenient files since they got renamed to
xcb-aux.
-rw-r--r-- | xcb-util/convenient/xcb-convenient.pc.in | 11 | ||||
-rw-r--r-- | xcb-util/convenient/xcb_convenient.c | 65 | ||||
-rw-r--r-- | xcb-util/convenient/xcb_convenient.h | 16 |
3 files changed, 0 insertions, 92 deletions
diff --git a/xcb-util/convenient/xcb-convenient.pc.in b/xcb-util/convenient/xcb-convenient.pc.in deleted file mode 100644 index bf3fa78..0000000 --- a/xcb-util/convenient/xcb-convenient.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: XCBConvenientImage -Description: XCB convenient functions -Version: @PACKAGE_VERSION@ -Requires: xcb -Libs: -L${libdir} -lXCBConvenient @LIBS@ -Cflags: -I${includedir} diff --git a/xcb-util/convenient/xcb_convenient.c b/xcb-util/convenient/xcb_convenient.c deleted file mode 100644 index 617ea57..0000000 --- a/xcb-util/convenient/xcb_convenient.c +++ /dev/null @@ -1,65 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -#include <X11/XCB/xcb.h> - -/* Connection related functions */ - -CARD8 -xcb_connection_depth_get (XCBConnection *c, - XCBSCREEN *screen) -{ - XCBDRAWABLE drawable; - XCBGetGeometryRep *geom; - int depth; - - drawable.window = screen->root; - geom = XCBGetGeometryReply (c, XCBGetGeometry(c, drawable), 0); - - if (!geom) { - perror ("GetGeometry(root) failed"); - exit (0); - } - - depth = geom->depth; - free (geom); - - return depth; -} - -XCBSCREEN * -xcb_connection_screen_get (XCBConnection *c, int screen) -{ - XCBSCREENIter i; - int cur; - - if (!c) return NULL; - - i = XCBConnSetupSuccessRepRootsIter(XCBGetSetup(c)); - if (screen > i.rem - 1) return NULL; /* screen must be */ - /* between 0 and i.rem - 1 */ - for (cur = 0; cur <= screen; XCBSCREENNext(&i), ++cur) {} - - return i.data; -} - -XCBVISUALTYPE * -xcb_connection_visualtype_get (XCBConnection *c, - int scr, - XCBVISUALID vid) -{ - XCBSCREEN *screen; - XCBDEPTH *depth; - XCBVISUALTYPEIter iter; - int cur; - - screen = xcb_connection_screen_get (c, scr); - if (!screen) return NULL; - - iter = XCBDEPTHVisualsIter(depth); - for (cur = 0 ; cur < iter.rem ; XCBVISUALTYPENext(&iter), ++cur) - if (screen->root_visual.id == iter.data->visual_id.id) - return iter.data; - - return NULL; -} diff --git a/xcb-util/convenient/xcb_convenient.h b/xcb-util/convenient/xcb_convenient.h deleted file mode 100644 index 3193078..0000000 --- a/xcb-util/convenient/xcb_convenient.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef __XCB_CONVENIENT_H__ -#define __XCB_CONVENIENT_H__ - - -CARD8 xcb_connection_depth_get (XCBConnection *c, - XCBSCREEN *screen); - -XCBSCREEN *xcb_connection_screen_get (XCBConnection *c, - int screen); - -XCBVISUALTYPE *xcb_connection_visualtype_get (XCBConnection *c, - int screen, - XCBVISUALID vid); - - -#endif /* __XCB_CONVENIENT_H__ */ |