X11-Display impl

Implements X11-Display.

Summary
X11-Display implImplements X11-Display.
CopyrightThis program is free software.
Files
C-kern/api/platform/X11/x11display.hHeader file of X11-Display.
C-kern/platform/X11/x11display.cImplementation file of X11-Display impl.
x11windowmap_entry_tAssociates Xlib object id (XID) with object pointer.
Variables
idThe identification of an object.
objectThe pointer to the identified object.
x11windowmap_tStores a set of x11windowmap_entry_t.
x11display_t
extension support
queryextensions_x11displayInitializes extension variables of x11display_t.
lifetime
query
screen
test
childprocess_environmentExecute this test in child to make changing environment safe.

Copyright

This program is free software.  You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Author

© 2011 Jörg Seebohn

Files

C-kern/api/platform/X11/x11display.h

Header file of X11-Display.

C-kern/platform/X11/x11display.c

Implementation file of X11-Display impl.

x11windowmap_entry_t

struct x11windowmap_entry_t

Associates Xlib object id (XID) with object pointer.

An <oostore_memindex_t> is included to allow this type of structure to be stored in an index of type tree for faster searching.

Summary
Variables
idThe identification of an object.
objectThe pointer to the identified object.

Variables

id

uint32_t id

The identification of an object.

object

struct x11window_t * object

The pointer to the identified object.

x11windowmap_t

struct x11windowmap_t

Stores a set of x11windowmap_entry_t.  TODO: This simplified implementation will be replaced by a dynamic index structure.

x11display_t

Summary
extension support
queryextensions_x11displayInitializes extension variables of x11display_t.
lifetime
query
screen
test
childprocess_environmentExecute this test in child to make changing environment safe.

extension support

queryextensions_x11display

static int queryextensions_x11display(x11display_t *x11disp)

Initializes extension variables of x11display_t.  It is expected that memory of all extension variables is set to zero before you call this function.

lifetime

query

screen

test

childprocess_environment

static int childprocess_environment(void *dummy)

Execute this test in child to make changing environment safe.  XOpenDisplay has memory leak in case server does not exist.

Handles access to a X11 display server.
Implements X11-Display.
struct x11windowmap_entry_t
Associates Xlib object id (XID) with object pointer.
uint32_t id
The identification of an object.
struct x11window_t * object
The pointer to the identified object.
struct x11windowmap_t
Stores a set of x11windowmap_entry_t.
static int queryextensions_x11display(x11display_t *x11disp)
Initializes extension variables of x11display_t.
static int childprocess_environment(void *dummy)
Execute this test in child to make changing environment safe.
Close