Changeset 5353:de96f27919bf in roaraudio for libroar


Ignore:
Timestamp:
12/12/11 19:11:39 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

serveral updates to roarpluginrunner and plugin API in general

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/plugincontainer.c

    r5320 r5353  
    4444 size_t deprefc[MAX_PLUGINS]; 
    4545 size_t numhandles; 
    46  // TODO: add a depref counter so we do not unload libs we depend on. 
    4746}; 
    4847 
     
    127126 
    128127   roar_dl_close(cont->handle[i]); 
     128   cont->handle[i] = NULL; 
     129   cont->numhandles--; 
    129130  } 
    130131 } 
  • libroar/roardl.c

    r5347 r5353  
    391391  return -1; 
    392392 
     393 if ( lib->host_appname != NULL || lib->host_abiversion != NULL ) { 
     394  // check for correct host. 
     395  if ( para == NULL ) { 
     396   roar_err_set(ROAR_ERROR_INVAL); 
     397   return -1; 
     398  } 
     399  if ( roar_dl_para_check_version(para, lib->host_appname, lib->host_abiversion) == -1 ) 
     400   return -1; 
     401 } 
     402 
    393403 if ( (lib->libdep == NULL && lib->libdep_len) || (lib->libdep != NULL && !lib->libdep_len) ) { 
    394404  roar_err_set(ROAR_ERROR_BADLIB); 
Note: See TracChangeset for help on using the changeset viewer.