Hi!

The patch is attached.
Anyone here, who can commit it into CVS, please?


CU,

Christoph Egger
E-Mail: [EMAIL PROTECTED]
--- libxmi/display/X/init.c.old Fri Nov  3 17:24:39 2000
+++ libxmi/display/X/init.c     Fri Nov  3 17:32:45 2000
@@ -4,13 +4,15 @@
 ******************************************************************************
 */
 
+#include <ggi/internal/ggi-dl.h>
 #include "xxmi.h"
 #include "xmi_debug.h"
 
-int GGIdlinit(ggi_visual *vis, const char *args, void *argptr)
+static int GGIopen(ggi_visual *vis, struct ggi_dlhandle *dlh,
+               const char *args, void *argptr, uint32 *dlret)
 {
        XMIDPRINT_CORE("LibXMI: GGIdlinit(%p, %s, %p) called for X-xmi sublib\n",
-              vis, args ? args : "(NULL)", argptr);
+               vis, args ? args : "(NULL)", argptr);
 
        XXMI_PRIV(vis) = malloc(sizeof(struct xxmi_priv));
        if (XXMI_PRIV(vis) == NULL) return GGI_DL_ERROR;
@@ -21,12 +23,33 @@
 }
 
 
-int GGIdlcleanup(ggi_visual *vis)
+static int GGIclose(ggi_visual *vis, struct ggi_dlhandle *dlh)
 {
        XMIDPRINT_CORE("LibXMI: GGIdlcleanup(%p) called for X-xmi sublib\n", vis);
 
        return 0;
 }
+
+
+int GGIdl_X_xmi(int func, void **funcptr)
+{
+       switch (func) {
+       case GGIFUNC_open:
+               *funcptr = GGIopen;
+               return 0;
+       case GGIFUNC_exit:
+               *funcptr = NULL;
+               return 0;
+        case GGIFUNC_close:
+               *funcptr = GGIclose;
+               return 0;
+        default:
+               *funcptr = NULL;
+        }
+
+       return GGI_ENOTFOUND;
+}
+
 
 /* This should be included by exactly _one_ file in each sublib. */
 #include <ggi/internal/ggidlinit.h>
--- libxmi/display/X/EXPSYMS.old        Fri Nov  3 17:30:44 2000
+++ libxmi/display/X/EXPSYMS    Fri Nov  3 17:29:54 2000
@@ -1,3 +1,2 @@
-GGIdlinit
-GGIdlcleanup
+GGIdl_X
 XMI_X_newgc

Reply via email to