diff src/amidi-plug/i_backend.c @ 437:e1c6b223431e trunk

[svn] - amidiplug: on midi backend init, pass a function that helps the backend to get the location of amidi-plug.conf
author giacomo
date Mon, 15 Jan 2007 13:25:41 -0800
parents 59d793da5395
children 5daedb3af7c9 5f892afeb8e1
line wrap: on
line diff
--- a/src/amidi-plug/i_backend.c	Mon Jan 15 12:46:38 2007 -0800
+++ b/src/amidi-plug/i_backend.c	Mon Jan 15 13:25:41 2007 -0800
@@ -49,7 +49,7 @@
         gchar * module_pathfilename = g_strjoin( "" , AMIDIPLUGBACKENDDIR , "/" ,
                                                  backend_directory_entry , NULL );
         /* seems to be a backend for amidi-plug , try to load it */
-        module = g_module_open( module_pathfilename , 0 );
+        module = g_module_open( module_pathfilename , G_MODULE_BIND_LOCAL );
         if ( module == NULL )
           g_warning( "Error loading module %s - %s\n" , module_pathfilename , g_module_error() );
         else
@@ -141,7 +141,7 @@
     getapmoduleinfo( &backend.name , NULL , NULL , NULL );
     backend.autonomous_audio = checkautonomousaudio();
     DEBUGMSG( "backend %s (name '%s') successfully loaded\n" , module_pathfilename , backend.name );
-    backend.init();
+    backend.init( i_configure_cfg_get_file );
     g_free( module_pathfilename );
     return 1;
   }