Changeset 5514:c35fedd1cdf7 in roaraudio
- Timestamp:
- 05/29/12 00:43:21 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/roardl.c
r5512 r5514 69 69 70 70 // TODO: this should be removed on next SONAME change. 71 static struct roar_dl_lhandle * __currently_inited = NULL; 71 static struct roar_dl_lhandle * __currently_inited = NULL; 72 static int __currently_inited_fn = -1; 72 73 73 74 struct roar_dl_librarypara * roar_dl_para_new(const char * args, void * binargv, … … 538 539 struct roar_dl_librarypara * para) { 539 540 struct roar_dl_lhandle * old_init; 541 int old_fn; 540 542 #define _SUFFIX "_roaraudio_library_init" 541 543 char name[80] = _SUFFIX; … … 638 640 639 641 old_init = __currently_inited; 642 old_fn = __currently_inited_fn; 640 643 __currently_inited = lhandle; 641 644 for (i = 0; i < ROAR_DL_FN_MAX; i++) { 645 __currently_inited_fn = i; 642 646 if ( lib->func[i] != NULL ) 643 647 lib->func[i](para, lib); 644 648 } 649 __currently_inited_fn = old_fn; 645 650 __currently_inited = old_init; 646 651 … … 926 931 lhandle = __currently_inited; 927 932 933 if ( fn == -1 ) 934 fn = __currently_inited_fn; 935 928 936 if ( lhandle == NULL ) { 929 937 roar_err_set(ROAR_ERROR_FAULT);
Note: See TracChangeset
for help on using the changeset viewer.