Diff of /incubator/orxvirt/src/orxvirt.cpp [r6228] .. [r6229]  Maximize  Restore

Switch to side-by-side view

--- a/incubator/orxvirt/src/orxvirt.cpp
+++ b/incubator/orxvirt/src/orxvirt.cpp
@@ -69,22 +69,14 @@
 /* Private Functions                                                          */
 /*----------------------------------------------------------------------------*/
 
+static void orxvirt_loader(RexxThreadContext *context) {
+    virInitialize();
+   }
+
 
 /*----------------------------------------------------------------------------*/
 /* Public Functions                                                           */
 /*----------------------------------------------------------------------------*/
-
-/**
- * Function:  OrxVirInitialize
- *
- * Initialize the library.
- *
- * @return        Zero.
- */
-RexxRoutine0(int, OrxVirtInitialize)
-{
-    return virInitialize();
-}
 
 
 /*----------------------------------------------------------------------------*/
@@ -95,12 +87,6 @@
 /*----------------------------------------------------------------------------*/
 /* ooRexx Package Stubs                                                       */
 /*----------------------------------------------------------------------------*/
-
-// build the actual function entry list
-RexxRoutineEntry orxvirt_routines[] = {
-    REXX_TYPED_ROUTINE(OrxVirtInitialize, OrxVirtInitialize),
-    REXX_LAST_ROUTINE()
-};
 
 
 // build the actual method entry list
@@ -128,9 +114,9 @@
     REXX_INTERPRETER_4_0_0,              // anything after 4.0.0 will work
     "OrxVirt",                           // name of the package
     "4.1.0",                             // package information
-    NULL,                                // no load functions
+    orxvirt_loader,                      // load functions
     NULL,                                // no unload functions
-    orxvirt_routines,                    // the exported routines
+    NULL,                                // the exported routines
     orxvirt_methods                      // the exported methods
 };
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks