[PATCH xrandr-utils 0/6] Refactor xrandr internals into libxrandr-utils

Bryce Harrington bryce at canonical.com
Wed Dec 21 18:47:07 PST 2011


Begin refactoring the xrandr command line tool's internals into a
utility library.  This is to provide a higher level abstraction for
configuring multiple monitors.

With the coming complexities of hybrid graphics, >2 heads, and so on, it
will hopefully save headaches all around to have a central place for the
configuration logic, rather than duplicated across Qt, gtk, and other
client-side tools.

This first set of changes just sets up the directory structure and
migrates a couple structures as proof of concept.  Posting it at this
early stage for feedback it's going in the correct direction.

Bryce Harrington (6):
  Initial packaging and directory structure.
  Import xrandr.c and its test as implementation examples.
  Copy a few basic structs and enums from xrandr.c into header.
  Add unit test suite and a basic test of the geometry structs.
  Refactor geometry structs in xrandr.c to use libXrandrUtil's
  Drop rectangle_t.

 .gitignore                           |   78 +
 Makefile.am                          |   37 +
 autogen.sh                           |   12 +
 configure.ac                         |   63 +
 examples/.gitignore                  |    1 +
 examples/Makefile.am                 |   13 +
 examples/xrandr.c                    | 3414 ++++++++++++++++++++++++++++++++++
 include/X11/extensions/XrandrUtils.h |   47 +
 man/Makefile.am                      |   19 +
 man/XrandrUtils.man                  |   51 +
 src/Makefile.am                      |   18 +
 test/.gitignore                      |    2 +
 test/Makefile.am                     |   14 +
 test/README                          |   14 +
 test/geometry.c                      |   84 +
 xrandr-utils.pc.in                   |   12 +
 16 files changed, 3879 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 Makefile.am
 create mode 100755 autogen.sh
 create mode 100644 configure.ac
 create mode 100644 examples/.gitignore
 create mode 100644 examples/Makefile.am
 create mode 100644 examples/xrandr.c
 create mode 100644 include/X11/extensions/XrandrUtils.h
 create mode 100644 man/Makefile.am
 create mode 100644 man/XrandrUtils.man
 create mode 100644 src/Makefile.am
 create mode 100644 src/XrandrUtils.c
 create mode 100644 test/.gitignore
 create mode 100644 test/Makefile.am
 create mode 100644 test/README
 create mode 100644 test/geometry.c
 create mode 100644 xrandr-utils.pc.in

-- 
1.7.4.1



More information about the xorg-devel mailing list