Changeset 5512:71b49441933f in roaraudio


Ignore:
Timestamp:
05/28/12 12:37:00 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid the need for linking plugins against libroar

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roardl.h

    r5511 r5512  
    9494                                          (para->version != ROAR_DL_LIBPARA_VERSION ||            \ 
    9595                                           para->len < sizeof(struct roar_dl_librarypara)) ) {    \ 
    96                                       roar_err_set(ROAR_ERROR_NSVERSION);                         \ 
     96                                      /* we should set ROAR_ERROR_NSVERSION here but can not */   \ 
     97                                      /* because that would require the plugin to be linked */    \ 
     98                                      /* aginst libroar */                                        \ 
    9799                                      return NULL;                                                \ 
    98100                                     }                                                            \ 
  • libroar/roardl.c

    r5511 r5512  
    579579 ROAR_DBG("roar_dl_ra_init(lhandle=%p, prefix='%s'): func=%p", lhandle, prefix, func); 
    580580 
     581 roar_err_set(ROAR_ERROR_BADLIB); // set a default error in case it returns NULL but not set an error code. 
    581582 lib = func(para); 
    582583 
Note: See TracChangeset for help on using the changeset viewer.