Changeset 3304:3c58a7391d87 in roaraudio for libroar/roardl.c
- Timestamp:
- 02/03/10 11:22:30 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/roardl.c
r3302 r3304 50 50 struct roar_dl_lhandle * ret = NULL; 51 51 52 // early errors just return. 53 54 if ( flags != ROAR_DL_FLAG_DEFAUTS ) 55 return NULL; 56 57 if ( (ret = roar_mm_malloc(sizeof(struct roar_dl_lhandle))) == NULL ) 58 return NULL; 59 60 memset(ret, 0, sizeof(struct roar_dl_lhandle)); 61 62 #if defined(ROAR_HAVE_LIBDL) 63 ret->handle = dlopen(filename, RTLD_NOW); 64 65 if ( ret->handle == NULL ) { 66 roar_mm_free(ret); 67 return NULL; 68 } 69 #else 70 roar_mm_free(ret); 71 return NULL; 72 #endif 73 52 74 if ( ret == NULL ) 53 75 return NULL; … … 61 83 62 84 int roar_dl_close(struct roar_dl_lhandle * lhandle) { 85 int ret = -1; 86 63 87 if ( lhandle == ROAR_DL_HANDLE_DEFAULT ) 64 88 return -1; … … 70 94 71 95 #if defined(ROAR_HAVE_LIBDL) 72 ret urndlclose(_roardl2ldl(lhandle));96 ret = dlclose(_roardl2ldl(lhandle)); 73 97 #else 74 ret urn-1;98 ret = -1; 75 99 #endif 100 101 roar_mm_free(lhandle); 102 103 return ret; 76 104 } 77 105
Note: See TracChangeset
for help on using the changeset viewer.