Changeset 5815:72602f914383 in roaraudio


Ignore:
Timestamp:
01/05/13 09:52:34 (8 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

also return lhandle for context switching

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roardl.h

    r5814 r5815  
    420420} 
    421421 
    422 const void * libroar_dl_service_get_api(struct roar_dl_librarypara * para, const char * appname, const char * appabi, const char * servicename, const char * serviceabi, int universal); 
    423 #define roar_dl_service_get_api(para,servicename,serviceabi,type) ((const struct type*)libroar_dl_service_get_api((para), (para)->appname, (para)->abiversion, (servicename), (serviceabi), 1)) 
     422const void * libroar_dl_service_get_api(struct roar_dl_librarypara * para, const char * appname, const char * appabi, const char * servicename, const char * serviceabi, int universal, struct roar_dl_lhandle ** lhandle); 
     423#define roar_dl_service_get_api(para,servicename,serviceabi,type,lhandle) ((const struct type*)libroar_dl_service_get_api((para), (para)->appname, (para)->abiversion, (servicename), (serviceabi), 1, (lhandle))) 
    424424 
    425425// Reg FN: 
  • libroar/roardl.c

    r5814 r5815  
    10281028} 
    10291029 
    1030 const void * libroar_dl_service_get_api(struct roar_dl_librarypara * para, const char * appname, const char * appabi, const char * servicename, const char * serviceabi, int universal) { 
     1030const void * libroar_dl_service_get_api(struct roar_dl_librarypara * para, const char * appname, const char * appabi, const char * servicename, const char * serviceabi, int universal, struct roar_dl_lhandle ** lhandle) { 
    10311031 const struct roar_dl_service * s; 
    10321032 struct __fnregs * c = NULL; 
     
    10621062   continue; 
    10631063 
     1064  if ( lhandle != NULL ) { 
     1065   if ( roar_dl_ref(c->lhandle) != 0 ) 
     1066    continue; 
     1067   *lhandle = c->lhandle; 
     1068  } 
     1069 
    10641070  return s->get_api(s, para); 
    10651071 } 
Note: See TracChangeset for help on using the changeset viewer.