[PATCH 2/7] Allow DDX to provide a main()

Jon TURNEY jon.turney at dronecode.org.uk
Fri Nov 30 07:36:40 PST 2012


On 08/11/2012 13:41, Jon TURNEY wrote:
> XQuartz already conditionally renames main() as dix_main() so it can provide
> it's own main().  This isn't ideal as it prevents libdix built this way from
> being useful with any other DDX.
> 
> So instead, always name that function dix_main(), and provide a stub main()
> which just calls it where needed.
> 
> Add a main() to XWin.
> It's no longer neccessary to link XWin and XQuartz with libmain.
> 
> Future work: prototype dix_main() somewhere, without it ending up in sdksyms...
> 
> Signed-off-by: Jon TURNEY <jon.turney-GrJqePx9RPPAJUdA+FbntA at public.gmane.org>
> ---
>  configure.ac         |    2 +-
>  dix/Makefile.am      |    3 ++-
>  dix/main.c           |    6 +-----
>  dix/stubmain.c       |   33 +++++++++++++++++++++++++++++++++
>  hw/xwin/InitOutput.c |    6 ++++++
>  hw/xwin/Makefile.am  |    4 ++--
>  6 files changed, 45 insertions(+), 9 deletions(-)
>  create mode 100644 dix/stubmain.c

Ping? Could this patch be reviewed, please?



More information about the xorg-devel mailing list