sgl

diff src/wsys.c @ 3:1b6c5dadb460

started hacking the X11 module
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 11 May 2011 09:09:43 +0300
parents 0c13a30be2c1
children edbfc96fe80d
line diff
     1.1 --- a/src/wsys.c	Wed May 11 05:53:26 2011 +0300
     1.2 +++ b/src/wsys.c	Wed May 11 09:09:43 2011 +0300
     1.3 @@ -1,6 +1,10 @@
     1.4  #include <stdio.h>
     1.5  #include "wsys.h"
     1.6  
     1.7 +static struct wsys_module *merge(struct wsys_module *list1, struct wsys_module *list2);
     1.8 +static struct wsys_module *msort(struct wsys_module *list, int count);
     1.9 +
    1.10 +
    1.11  struct wsys_module *wslist;
    1.12  int wscount;
    1.13  
    1.14 @@ -12,6 +16,16 @@
    1.15  	return 0;
    1.16  }
    1.17  
    1.18 +void sgl_sort_modules(void)
    1.19 +{
    1.20 +	wslist = msort(wslist, wscount);
    1.21 +}
    1.22 +
    1.23 +struct wsys_module *sgl_wsys_module(void)
    1.24 +{
    1.25 +	return wslist;
    1.26 +}
    1.27 +
    1.28  #define APPEND(node) \
    1.29  	do { \
    1.30  		if(!res) { \