xfree86: switch options from pointer to XF86OptionPtr
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 3 Aug 2011 06:01:28 +0000 (16:01 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 27 Sep 2011 01:43:36 +0000 (11:43 +1000)
commit24823f1ab0f16e0815ef44340894537dc4babf6a
treed085a5265bb1a2ddfa08c7053caab474ca876717
parent05284a03f9002b03a66ae355b34790ec02b726f0
xfree86: switch options from pointer to XF86OptionPtr

In all cases, the pointer was simply type-cast anyway. Let's get some
compile-time type safety going, how about that.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Squashed in:
xfree86: Move definition of xf86OptionPtr into separate header file

The pile of spaghettis that is the xfree86 include dependencies make it
rather hard to have a single typedef somewhere that's not interfering with
everything else or drags in a whole bunch of other includes.

Move the xf86OptionRec and GenericListRec declarations into a separate
header.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
13 files changed:
hw/xfree86/common/Makefile.am
hw/xfree86/common/xf86.h
hw/xfree86/common/xf86Opt.h
hw/xfree86/common/xf86Option.c
hw/xfree86/common/xf86Optionstr.h [new file with mode: 0644]
hw/xfree86/common/xf86Xinput.c
hw/xfree86/common/xf86Xinput.h
hw/xfree86/doc/ddxDesign.xml
hw/xfree86/os-support/shared/posix_tty.c
hw/xfree86/os-support/xf86_OSproc.h
hw/xfree86/parser/Makefile.am
hw/xfree86/parser/xf86Optrec.h
test/xfree86.c